SpeechToText.Dictation{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "SpeechToTextEvent",
"type": "object",
"additionalProperties": false,
"properties": {
"text": {
"type": [
"null",
"string"
]
},
"confidence": {
"type": "number",
"format": "float"
},
"alternatives": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/AlternativePhrase"
}
}
},
"definitions": {
"AlternativePhrase": {
"type": "object",
"additionalProperties": false,
"properties": {
"text": {
"type": [
"null",
"string"
]
},
"confidence": {
"type": "number",
"format": "float"
}
}
}
}
}
{
"alternatives": [
{
"confidence": -38611266.89340075,
"text": null
},
{
"confidence": 64408726.2012468,
"text": null
},
{
"confidence": -76686925.62681767,
"text": "pariatur ut"
},
{
"confidence": 96167015.84190911,
"text": "in et dolor"
},
{
"confidence": -4403354.790789396,
"text": "ad in non Duis"
}
],
"confidence": -3700007.350916758,
"text": null
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "SpeechToText.Dictation" events and register a callback
client.on('SpeechToText.Dictation', ({ event, data }) => {
// Code here will run every time the event is received!
console.log('Received event:', event.source, event.type);
console.log('Event data:', data);
});