Skip to content

Step 3: Prepare or Record Audio Samples

Prepare Audio Samples

There are several ways to prepare the audio samples you want to use in your test cases:

  • Record your own voice

  • Use a synthesized voice

  • Upload your existing audio files

Live Chat

When using the audio recorder in Live Chat, it is possible to save the whole conversation a test set. The audio recordings are stored in a meaningful folder structure already (test set name / test case name / Step X).

Record Your Own Voice

In your voice test set, open the Voice Wizard and choose the Live Voice Recorder option.

Select folder where your audio recordings will be uploaded. We suggest to think about a folder structure how to place your audio files. For example, you can group them by test case and conversation step:

Use the Record Audio button to start the audio recording. When ready, use the Save Recording button to upload the audio file to the folder you selected before.

You can repeat this step until you have enough audio samples for your test cases.

Use a synthesized voice

In your voice test set, open the Voice Wizard and choose the Voice Synthesis option. Enter

  1. the text for which to synthesize speech

  2. the language of the text

  3. the voices to use

  4. the output folder and the output file prefix

Click the Start Voice Synthesis button to start the background jobs. You can see the recent jobs in the list below.

Note

Depending on available network and hardware resources and length of the text this can take longer.

You can listen to the synthesized audio files - beautiful! In the File Browser you can see that there have been two files created in the given folder, one for each of the selected voices.

Upload your existing audio files

You can upload your existing audio files in the File Browser in the Settings menu (from the User dropdown menu).

Use the Voice Samples in Test Cases

Switch over to the Test Cases section and write a new test case including your audio samples.

Click on the Add User Conversation Step to start the test case by sending a first audio sample to the chatbot.

Click the Add User Input button to open the selection box for the available ways to simulate user input.

Select the Send Media Attachment option from the list.

Now use the file selection dialog to browser the folders you placed your audio recordings to and select the audio file to send.

Note

You can select multiple files or folders here, or even use your own wildcards. Botium will then send all audio files to the chatbot - the same concept is known as Utterance Expansion in Botium.

  • mytestcase1/step0/myrecording.wav will use this one file

  • mytestcase1/step0/*.wav will use all files with wav extension in this folder

  • mytestcase1/step0/* will use all files in this folder

You can now see your selection in the convo designer.

Repeat this step for additional audio input files.

You can always use the Run Convo … button to let the convo run against your chatbot to check functionality.

Now head over to Step 4: Run First Voice Test Session