SarvamAISTT
Sarvam AI speech-to-text (STT) transcriber.Constructor
Sarvam AI API key. Defaults to the
SARVAM_API_KEY environment variable.Transcription model id. Default
'saaras:v3'.Spoken language code. Default
'en-IN'.Sample rate (Hz) of the audio sent in. Default
48000.Sample rate in Hz that input audio is resampled to. Default
16000.Decoding mode. Default
null (provider default).Use a more sensitive VAD profile. Default
null.Emit flush signals between turns. Default
null.Translate transcripts to the target language. Default
false.Optional prompt to bias transcription. Default
null.Input audio codec. Default
'pcm_s16le'.Emit VAD signals. Default
true.VAD probability above which a frame counts as speech. Default
null.VAD probability below which a frame counts as non-speech. Default
null.Minimum frames of speech to start a turn. Default
null.Minimum speech frames for the first turn. Default
null.Audio frames of padding prepended before speech. Default
null.Minimum speech frames required to interrupt. Default
null.close
closeEmitter
emit
getRuntimeConfig
listenerCount
off
on
once
onSttTranscript
processAudio
removeAllListeners
streamTranscribe
SarvamAISTTModel
Supported Sarvam AI STT model names.Fields
Returns a string representation of a string.
Returns the character at the specified index.
Returns the Unicode value of the character at the specified location.
Returns a string that contains the concatenation of two or more strings.
Returns the position of the first occurrence of a substring.
Returns the last occurrence of a substring in the string.
Determines whether two strings are equivalent in the current locale.
Matches a string with a regular expression, and returns an array containing the results of that search.
Replaces text in a string, using a regular expression or search string.
Finds the first substring match in a regular expression search.
Returns a section of a string.
Split a string into substrings using the specified separator and return them as an array.
Returns the substring at the specified location within a String object.
Converts all the alphabetic characters in a string to lowercase.
Converts all alphabetic characters to lowercase, taking into account the host environment’s current locale.
Converts all the alphabetic characters in a string to uppercase.
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment’s current locale.
Removes the leading and trailing white space and line terminator characters from a string.
Returns the length of a String object.
Gets a substring beginning at the specified location and having the specified length.
Returns the primitive value of the specified object.
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
value of the UTF-16 encoded code point starting at the string element at position pos in
the String resulting from converting this object to a String.
If there is no element at that position, the result is undefined.
If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Returns true if searchString appears as a substring of the result of converting this
object to a String, at one or more positions that are
greater than or equal to position; otherwise, returns false.
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
endPosition – length(this). Otherwise returns false.
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Returns a String value that is made from count copies appended together. If count is 0,
the empty string is returned.
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
position. Otherwise returns false.
Returns an
<a> HTML anchor element and sets the name attribute to the text valueReturns a
<big> HTML elementReturns a
<blink> HTML elementReturns a
<b> HTML elementReturns a
<tt> HTML elementReturns a
<font> HTML element and sets the color attribute valueReturns a
<font> HTML element and sets the size attribute valueReturns an
<i> HTML elementReturns an
<a> HTML element and sets the href attribute valueReturns a
<small> HTML elementReturns a
<strike> HTML elementReturns a
<sub> HTML elementReturns a
<sup> HTML elementPads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the start (left) of the current string.
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the end (right) of the current string.
Removes the trailing white space and line terminator characters from a string.
Removes the leading white space and line terminator characters from a string.
Removes the leading white space and line terminator characters from a string.
Removes the trailing white space and line terminator characters from a string.
Matches a string with a regular expression, and returns an iterable of matches
containing the results of that search.
Replace all instances of a substring in a string, using a regular expression or search string.
Returns a new String consisting of the single UTF-16 code unit located at the specified index.