How to configure and use transcribers for speech recognition in your application.
TranscriberConfig
class.
DeepgramTranscriberConfig.from_telephone_input_device()
method is used to create a configuration object for the Deepgram transcriber. The method hardcodes some values like the sampling_rate
, audio_encoding
, and chunk_size
for compatibility with telephone input devices.
StreamingConversation
locallyDeepgramTranscriberConfig.from_input_device()
method is used to create a configuration object for the Deepgram transcriber for use in a local StreamingConversation
.
The method takes a microphone_input
object as an argument and extracts the sampling_rate
, audio_encoding
, and chunk_size
from the input device.
EndpointingConfig
controls how this is done. There are a couple of different ways to configure endpointing:
PunctuationEndpointingConfig
is used to configure the Deepgram transcriber for punctuation-based endpointing.