AudioCodes (LiveHub) and Deepgram STT
AudioCodes (LiveHub) and Deepgram STT
Learn how to integrate Deepgram STT with AudioCodes (LiveHub).
AudioCodes (LiveHub) and Deepgram STT
Learn how to integrate Deepgram STT with AudioCodes (LiveHub).
AudioCodes VoiceAI Connect is a powerful platform that enables the integration of telephony and contact center platforms with the cloud, thus facilitating the use of Deepgram in your customer journey.
It offers a simple user interface for standing up connections and developer-friendly APIs for advanced integrations.
Note, AudioCodes offers two versions of this platform - LiveHub, which is the self serve version, as well as VoiceAI Connect Enterprise, which is the managed services version.
This guide will focus on LiveHub, as it is accessible to all users. However, if you are using VoiceAI Connect Enterprise, the steps and instructions laid out here will be very similar. In addition, you will have the help of the AudioCodes Professional Services team to help you with the configuration. Refer to this doc for guidance, but note that the steps may vary slightly depending on how your specific version of VoiceAI Connect Enterprise is built.
Before you start, you’ll need to follow the steps in the Make Your First API Request guide to obtain a Deepgram API key.
You will need an AudioCodes LiveHub account to connect the two services.
Follow the steps in the LiveHub integration guide to create a new speech service.
If you want to use Deepgram’s Speech-to-Text or Text-to-Speech services, you should choose the Deepgram specific speech provider option.
You can also use the Custom Integration option and insert the Deepgram API endpoint (example - wss://api.deepgram.com/v1/listen).
Selecting this option automaticaly routes your requests to the default Deepgram STT or TTS endpoints:
Select this option if you wish to pass the Deepgram API endpoint explicitly, or for testing another alternate endpoint.
AudioCodes supports Advanced JSON configuration in the Bot Connection. This is how you can pass additional query parameters to Deepgram.
Follow these instructions if you need to set up a Bot Connection for this first time.
To edit an existing Bot Connection, navigate to Bot Connections > Edit > Advanced
Please see the AudioCodes documentation for the full list of supported key-value pairs in the Advanced JSON configuration.
Deepgram officially supports the following AudioCodes configuration parameters:
If you wish to pass ANY supported parameter (other than language) to Deepgram, you can do so using the sttGenericData object. For example, any of the parameters in our API documentation can be passed through the sttGenericDataobject.
For example, you might configure the sttGenericData object as such:
The ONLY way to set the language for your STT service is to use the the sttLanguage field. If you try to pass a language code in sttGenericParams it will be ignored.
If you wish to use Keyterms (nova-3) or Keywords (nova-2, nova-1, base, enhanced), you should pass a list through the sttGenericData object. See the example below.
Keyword Intensifiers are supported. Simply pass the value immediately after the keyword, separated by a colon, as per our documentation.
Configure the Custom Integration Speech Service
wss://integrations.deepgram.com/audiocodes/sttsttGenericData object to pass your parametersDefine and Pass the AI Works Object
aiworks object that routes requests to AI Works (instead of the default API endpoint)If using AI Works, do not pass query parameters as “top level” key-value pairs, as these will be ignored if the aiworks object is present.
Instead, pass your query parameters in the aiworks.stt_query_params object.
Always consult the AudioCodes API documentation for the most up to date information.