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": -69581550.68986875,
"text": "in pariatur ut velit anim"
},
{
"confidence": -73332339.72471543,
"text": null
},
{
"confidence": -59916379.73071749,
"text": null
},
{
"confidence": -64775798.96166512,
"text": null
},
{
"confidence": -67432548.31238805,
"text": null
}
],
"confidence": 67223424.13619468,
"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);
});