VoiceAudioFormats
AgentPrism.Core.dllThe audio formats that the client can send.
public static class VoiceAudioFormatsInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Both are supported. The default is VoiceAudioFormats.WebmOpus: every browser can
produce it with MediaRecorder, its bandwidth is low, and the concatenated
chunks form a valid file.
Fields
Section titled “Fields”The AudioWorklet output: raw 16-bit little-endian PCM, mono.
public const string Pcm16 = "pcm16"Field Value
Section titled “Field Value”Remarks
Section titled “Remarks”Raw PCM has no header and is not a valid file on its own. Before the audio goes to the transcription provider the server writes a WAV header.
WebmOpus
Section titled “ WebmOpus”The MediaRecorder output: Opus in a WebM container.
public const string WebmOpus = "webm-opus"Field Value
Section titled “Field Value”Methods
Section titled “Methods”IsKnown(string?)
Section titled “ IsKnown(string?)”Determines whether the format is known.
public static bool IsKnown(string? format)Parameters
Section titled “Parameters”format string?
The format name; an empty value means the default.
Returns
Section titled “Returns”true when the format is known.