SpeechToText.Command{
  "$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": 16481595.566967294,
      "text": "nulla velit do in cillum"
    },
    {
      "confidence": -86081884.54925883,
      "text": "minim laboris dolore ea aliquip"
    },
    {
      "confidence": 64320099.2714957,
      "text": null
    },
    {
      "confidence": -43488053.41493396,
      "text": "mollit commodo"
    },
    {
      "confidence": 73411267.64850411,
      "text": null
    }
  ],
  "confidence": 92496882.83050433,
  "text": "ullamco minim nisi"
}
// Initialize the Streamer.bot WebSocket Client
const client = new StreamerbotClient();
// Subscribe to "SpeechToText.Command" events and register a callback
client.on('SpeechToText.Command', ({ 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);
});