utils
此内容尚不支持你的语言。
const utils: object;Type Declaration
Section titled “Type Declaration”arrayBufferToBase64()
Section titled “arrayBufferToBase64()”arrayBufferToBase64: (arrayBuffer) => string = utilImport.arrayBufferToBase64;Converts an ArrayBuffer to a base64 string
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
Returns
Section titled “Returns”string
base64ToArrayBuffer()
Section titled “base64ToArrayBuffer()”base64ToArrayBuffer: (base64) => ArrayBuffer = utilImport.base64ToArrayBuffer;Converts a base64 string to an ArrayBuffer
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
Returns
Section titled “Returns”ArrayBuffer
getLastTextFromAudioOutputMessage()
Section titled “getLastTextFromAudioOutputMessage()”getLastTextFromAudioOutputMessage: (item) => string | undefined = utilImport.getLastTextFromAudioOutputMessage;Get the last text from an audio output message
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
Returns
Section titled “Returns”string | undefined