Deepgram : Aura-2
deepgram/aura-2
actif
tts
1 fournisseur
Deepgram's enterprise-grade text-to-speech model with an expanded voice catalog and context-aware delivery, targeting sub-200ms latency at high concurrency, covered here for the English (-en) voices of its multilingual catalog.
AuteurDeepgram
Langues7 langues
VoixChargement...
Formats de réponseSynchrone : MP3 · WAV · PCM · Opus · AAC · FLAC · µ-law · A-law
Streaming : PCM · µ-law · A-law
Streaming : PCM · µ-law · A-law
Statutactif
Fournisseurs
Plusieurs fournisseurs peuvent héberger le même modèle. Choisissez-en un lorsque vous avez besoin d’un backend fixe, ou laissez le routage choisir parmi eux.
FournisseurSlugPour 1k caractèresLatenceiPour le TTS, la latence correspond au délai jusqu’au premier octet audio. Pour le STT, elle correspond au délai jusqu’au premier token.ModesDisponibilité
Deepgram
12 paramètres
deepgram
$0,03
—
Synchrone · Streaming
Langues prises en charge
7 langues
English
en
Spanish
es
German
de
French
fr
Dutch
nl
Italian
it
Japanese
ja
Voix
Fonctionnalités
Text to speech
Generates spoken audio from text input.
text_to_speech
Streaming
Supports streaming (WebSocket) audio output.
streaming
Synchronous
Synthesizes speech from fully-submitted text in a single synchronous request.
synchronous
Code
TTS en streaming avec l’ElevenLabs SDK
Fait passer l’ElevenLabs SDK par AllModels et diffuse la réponse audio en streaming.
import { ElevenLabsClient } from "elevenlabs";
const client = new ElevenLabsClient({
apiKey: process.env.ALLMODELS_API_KEY,
baseUrl: "https://api.allmodels.io/el"
});
const stream = await client.textToSpeech.stream("voice_id", {
text: "I'm sorry, Dave. I'm afraid I can't do that.",
modelId: "deepgram/aura-2",
outputFormat: "mp3_44100_128"
}, {
queryParams: {
provider: {
"only": [
"deepgram"
]
}
}
});
const reader = stream.getReader();
for (;;) {
const { done, value } = await reader.read();
if (done) break;
// Write value to your response, file, or audio playback pipeline.
}
