FluxSttOptions class
Query parameters for a /v2/listen Flux transcription session.
Constructors
-
FluxSttOptions({String model = 'flux-general-en', List<
String> ? languageHints, LiveEncoding? encoding, int? sampleRate, double? eotThreshold, double? eagerEotThreshold, int? eotTimeoutMs, List<String> ? keyterms, bool? numerals, List<String> ? tag, Map<String, String> ? extra, bool? mipOptOut}) -
Creates a Flux options bundle.
const
Properties
- eagerEotThreshold → double?
-
Eager end-of-turn threshold. When set,
EagerEndOfTurnandTurnResumedevents are emitted, letting an agent start preparing a reply before the turn is fully settled.final - encoding → LiveEncoding?
-
Required when streaming raw (uncontainerized) audio, together with
sampleRate. Flux supports a subset of LiveEncoding:
linear16,linear32,mulaw,alaw,opus, andogg-opus.final - eotThreshold → double?
-
End-of-turn confidence threshold, between
0.5and1.0. Whennullthe server default (0.7) applies.final - eotTimeoutMs → int?
-
Milliseconds of speech after which the turn is force-ended. When
nullthe server default (5000 ms) applies.final -
extra
→ Map<
String, String> ? -
Arbitrary key-value pairs echoed in API responses for downstream
processing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
keyterms
→ List<
String> ? -
Key term prompting. Sent as repeated
keytermquery keys; plain terms only (no weights or intensifiers).final -
languageHints
→ List<
String> ? -
BCP-47 language hints biasing language detection. Only valid with the
flux-general-multimodel. Sent as repeatedlanguage_hintquery keys.final - mipOptOut → bool?
-
Opt out of the Deepgram Model Improvement Program.
final
- model → String
-
Flux model:
flux-general-en(English) orflux-general-multi(multilingual). Defaults toflux-general-en.final - numerals → bool?
-
Convert written numbers to numerals.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int?
-
Sample rate in Hz. Required together with encoding.
final
-
tag
→ List<
String> ? -
Tags for usage reporting. Sent as repeated
tagquery keys.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toQuery(
) → Map< String, dynamic> - Builds the query parameters for the WebSocket URI.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited