Voice API
The noise suppression can be enabled for the Voice API calls in the following way:Don’t forget to update
YOUR_API_KEY here.direction which can have one of the following options: inbound | outbound | both.
direction is defined from Telnyx’s perspective — relative to the audio streams on Telnyx’s side of the call, not to your application — which is the opposite of what the names suggest. The remote party is whoever is on the other end of the call (the caller on an inbound call, the callee on an outbound call):
For speech recognition, streaming, and AI use cases, use
outbound (or both): the audio you transcribe — the voice of the party you are listening to — is the outbound direction. This is also what Telnyx AI Assistants use internally.Supported engines
Telnyx offers four noise suppression engines, each optimized for different use cases:Choosing an engine
- For standard telephony, use
Denoiser(default) orKrispfor speaker isolation. - For WebRTC calls, use
DeepFilterNetfor full-band processing. - For AI-powered calls (AI Assistants, Gather Using AI), consider
AiCousticsfor the best speech recognition accuracy.
noise_suppression_engine parameter:
Engine configuration
Some engines support additional tuning vianoise_suppression_engine_config. Parameters are engine-specific and ignored by other engines.
Krisp models
TheKrisp engine supports several sub-models. Select a model using noise_suppression_engine_config.model:
You can also set the suppression intensity with
suppression_level (0.0–100.0):
DeepFilterNet configuration
TheDeepFilterNet engine supports two tuning parameters:
AiCoustics configuration
TheAiCoustics engine exposes enhancement and gain controls: