UC Toolkit: Using Audacity to Create and Edit Cisco UCCX Prompts

Author
William Bell
Vice President, Solutions and Products

Background

Audacity is a free audio editor and recorder that has been around since 2000. It runs on Windows, Mac OS X, and GNU/Linux platforms. Audacity has a pretty robust set of features for a free application. You can see a list of features here. The latest release is available on sourceforge (Audacity Download). I currently use Audacity 1.3 beta on Mac OS X. I also have Audacity 1.2.6 on my Windows VM. The 1.3 beta has crashed on me once or twice but the interface has a number of enhancements that definitely make it worthwhile (and it does recover gracefully, for whatever that is worth).

Screen shots and procedures are based on Audacity version 1.3.

UCCX Prompt Formats
UCCX prompts are .WAV files that have the following attributes:

  • Format: CCIT U-Law
  • Sample Size: 8-bit
  • Sample Rate: 8kHz

Creating and Editing UCCX Prompts
There are essentially two methods one can use to create UCCX prompts. One method is to use a custom CRS script to create prompts using the telephone user interface (TUI). The second method is to record the prompts off line and upload them. I have used Audacity to record prompts, edit prompts, and convert prompts for both methods.

For this blog, I will focus using Audacity for recording prompts using and for editing pre-recorded content for use with Cisco UCCX.

Creating UCCX Prompts
You can use Audacity to record prompts directly. In Audacity, you first start by creating a new project (File>New). Once you created a new project you set set the project sampling rate to 8kHz. This is done by modifying the drop down option at the bottom left of the project window (see below). After setting the sampling rate, add a new track (Tracks>Add New>Audio Track). This will add a new mono-channel audio track. It should inherit the project sampling rate.


Figure 1. New Project

[Note: In Audacity 1.2.6 you can skip this step.]
 

To record audio in the new track you can go to Transport>Append Record use Shift+R from you keyboard or press Shift on your keyboard when click the “Record” button on the tool bar. When you are finished recording click on the “Stop” button.

Figure 2. Recording

Now, you can review your recording. You may edit the recording in numerous ways. You can add silence, cut out the front and/or back of the recording, or cut out sections, just to name a few of the editing tasks that can be performed. Once you are finished editing you can export the audio track to a file. Go to File>Export. In the export dialog, set the format to “Other uncompressed files…” and choose Options. In the options dialog, set the Header to “WAV (Microsoft)” and the Encoding to “U-Law”. Click on OK and then specify the location and file name.


Figure 3. Saving File in Proper Format

[Note: In Audacity 1.2.6 you can't select the type when exporting. You have to go to Edit>Preferences and
specify the "File Format".] 

Another method I have used to do these recordings is to actually just make the recordings using the default sampling rate and export format and then used Switch Sound File Converter (Switch) (link) to bulk convert all of the files.

Editing and Converting
I usually use a CRS script approach to create prompts. We have a whole system in place that makes the recording process simple and I would say it is the most efficient method if recording a batch of prompts yourself (i.e. not studio recorded). Sometimes, audio artifacts may be present in recordings creating via CRS script. For example, I have had a customer record their own prompts and the person recording it would noticeably sigh before and after the recording. Instead of asking them to re-record, I would just fix it for them. Another example is that when using using the CRS script from an external (PSTN) station I have found DTMF tones “leaking” into the recording.

I have also used Audacity to record prompts that a customer had a professional studio record, but the prompts were recorded as MP3 files. We tried to get the professional studio to record the files using the correct format but they said the customer specified MP3 and they would charge a ton of dollars to re-record. Unreal.

Anyway, Audacity to the rescue. When converting audio files, start a new project (File>New). Set the sampling rate for the project to 8000Hz (see Figure 1). Then go to File>Import and browse to your audio file. Audacity recognizes most audio formats. When you open the file, you may see that the audio file was actually recorded in stereo (which was the case in my example). UCCX can only handle mono formats so you have remove one of the channels. Use the following procedure:

  • In the track description area (left) click on the drop down arrow
  • Choose “Split Stereo to Mono”
  • Then delete one of the mono tracks


Figure 4. Converting Stereo To Mono

Now, you can review and edit the recording as previously described. Once you are finished editing you can export the audio track to a file. Go to File>Export. In the export dialog, set the format to “Other uncompressed files…” and choose Options. In the options dialog, set the Header to “WAV (Microsoft)” and the Encoding to “U-Law”. Click on OK and then specify the location and file name (see Figure 3).


William Bell is the Collaboration Practice Lead for Chesapeake NetCraftsmen. Bill has over 10 years of experience in the IT industry with a focus on communication and collaboration technologies. In addition to blogging on the NetCraftsmen site, Bill also maintains the UC Guerrilla blog: http://ucguerrilla.com. You can follow Bill on Twitter: @ucguerrilla

One response to “UC Toolkit: Using Audacity to Create and Edit Cisco UCCX Prompts

Leave a Reply

 

Nick Kelly

Cybersecurity Engineer, Cisco

Nick has over 20 years of experience in Security Operations and Security Sales. He is an avid student of cybersecurity and regularly engages with the Infosec community at events like BSides, RVASec, Derbycon and more. The son of an FBI forensics director, Nick holds a B.S. in Criminal Justice and is one of Cisco’s Fire Jumper Elite members. When he’s not working, he writes cyberpunk and punches aliens on his Playstation.

 

Virgilio “BONG” dela Cruz Jr.

CCDP, CCNA V, CCNP, Cisco IPS Express Security for AM/EE
Field Solutions Architect, Tech Data

Virgilio “Bong” has sixteen years of professional experience in IT industry from academe, technical and customer support, pre-sales, post sales, project management, training and enablement. He has worked in Cisco Technical Assistance Center (TAC) as a member of the WAN and LAN Switching team. Bong now works for Tech Data as the Field Solutions Architect with a focus on Cisco Security and holds a few Cisco certifications including Fire Jumper Elite.

 

John Cavanaugh

CCIE #1066, CCDE #20070002, CCAr
Chief Technology Officer, Practice Lead Security Services, NetCraftsmen

John is our CTO and the practice lead for a talented team of consultants focused on designing and delivering scalable and secure infrastructure solutions to customers across multiple industry verticals and technologies. Previously he has held several positions including Executive Director/Chief Architect for Global Network Services at JPMorgan Chase. In that capacity, he led a team managing network architecture and services.  Prior to his role at JPMorgan Chase, John was a Distinguished Engineer at Cisco working across a number of verticals including Higher Education, Finance, Retail, Government, and Health Care.

He is an expert in working with groups to identify business needs, and align technology strategies to enable business strategies, building in agility and scalability to allow for future changes. John is experienced in the architecture and design of highly available, secure, network infrastructure and data centers, and has worked on projects worldwide. He has worked in both the business and regulatory environments for the design and deployment of complex IT infrastructures.