deepgram-flux-en
Live English Flux. $0.0065 per minute. Turn detection is part of the model.
The call is Pascal’s. Send Authorization: Bearer with a Pascal key, and Pascal’s body: model, the file or the text, and params. Inside params, a Pascal name and the provider’s own name are both accepted. If both are sent and they disagree, the request is rejected. The provider’s SDK and host are not this API. The API request fee is not charged. A studio call needs a Creator plan or an API balance.
Native stream: PCM16 mono on the Flux listen socket, or μ-law or A-law. Default 16000 Hz linear16.. Live price and availability are on GET /v1/models/deepgram-flux-en.
- Open wss://api.pascalai.co/v1/speech-to-text/realtime?model=deepgram-flux-en.
- Flux has no file upload and no diarization. Nova-only fields are rejected.
- TurnInfo events are forwarded. A finished turn is also sent as transcript.completed.
- $0.0065 per minute of audio.
Parameters
| Field | Type | Description |
|---|---|---|
session.eot_thresholdDefault 0.7 | number | End-of-turn confidence from 0.5 to 1. |
session.eager_eot_threshold | number | Eager end-of-turn confidence from 0.3 to 0.9. |
session.eot_timeout_msDefault 5000 | integer | Force the end of a turn after this many milliseconds. |
session.keyterm | string or array | Keyterm prompting. custom_terms is the same list. |
session.sample_rateDefault 16000 | integer | 8000, 16000, 24000, 44100, or 48000. Omit it and the rate is 16000 Hz. The bytes have to already be that rate. A live frame has no header, so a mismatch is still accepted and the transcript can come out degraded. |
session.encodingDefault linear16 | string | linear16, mulaw, or alaw. Omit it for linear16. |
Example
const socket = new WebSocket(
'wss://api.pascalai.co/v1/speech-to-text/realtime?model=deepgram-flux-en&api_key=' + key
);
socket.binaryType = 'arraybuffer';
socket.onopen = () => {
socket.send(JSON.stringify({
type: 'session.update',
session: {
language: 'auto',
endpointing: 'manual',
},
}));
};
// binary Int16 PCM16 mono frames at session.sample_rate (default 16000)
// when endpointing is manual:
socket.send(JSON.stringify({ type: 'session.commit' }));
socket.send(JSON.stringify({ type: 'session.close' }));