{
  "id": "task_libraries:speech-recognition/javascript",
  "path": "/exapedia/javascript-speech-recognition-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript speech recognition libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript speech recognition libraries turn recorded or live audio into text. Most send the audio to a cloud speech-to-text service that returns a transcript with timestamps and speaker labels. These libraries let voice agents, meeting tools, and captioning apps act on what people say."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript speech recognition libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#elevenlabs-elevenlabs-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F133"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#deepgram-sdk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-cloud-speech-to-text",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aws-sdk-client-transcribe",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#assemblyai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#microsoft-speech-sdk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F215"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#amazon-transcribe-streaming",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F231"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-speech-recognition",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "text",
          "text": "The "
        },
        {
          "t": "link",
          "href": "#elevenlabs-elevenlabs-js",
          "label": [
            {
              "t": "text",
              "text": "ElevenLabs JavaScript SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F134"
        },
        {
          "t": "text",
          "text": ", a count that covers every ElevenLabs API rather than speech recognition alone."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Live audio",
            "Speaker labels"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#elevenlabs-elevenlabs-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F133"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#deepgram-sdk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F147"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F158"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#google-cloud-speech-to-text",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F161"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F169"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#aws-sdk-client-transcribe",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F177"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F187"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#assemblyai",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F195"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F203"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F204"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#microsoft-speech-sdk",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F211"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#amazon-transcribe-streaming",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F227"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#react-speech-recognition",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "elevenlabs-elevenlabs-js",
          "name": [
            {
              "t": "fact",
              "fact": "F133"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/elevenlabs/elevenlabs-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@elevenlabs/elevenlabs-js"
            },
            {
              "label": "Docs",
              "href": "https://elevenlabs.io/docs/developers/guides/cookbooks/speech-to-text/quickstart"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F140"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F134"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F142"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://elevenlabs.io/docs/developers/guides/cookbooks/speech-to-text/quickstart",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F133"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { ElevenLabsClient } from \"@elevenlabs/elevenlabs-js\";\nconst client = new ElevenLabsClient();\nconst audio = await fetch(\"https://storage.googleapis.com/eleven-public-cdn/audio/marketing/nicole.mp3\");\nconst transcript = await client.speechToText.convert({\n  file: new Blob([await audio.arrayBuffer()], { type: \"audio/mp3\" }),\n  modelId: \"scribe_v3\",\n});\nconsole.log(transcript);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://elevenlabs.io/docs/developers/guides/cookbooks/speech-to-text/quickstart",
                  "label": [
                    {
                      "t": "text",
                      "text": "example.mts"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40elevenlabs/elevenlabs-js%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F133"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F138"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "deepgram-sdk",
          "name": [
            {
              "t": "fact",
              "fact": "F147"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/deepgram/deepgram-js-sdk"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@deepgram/sdk"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/%40deepgram%2Fsdk/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F154"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/%40deepgram%2Fsdk/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { createReadStream } from \"node:fs\";\nimport { DeepgramClient } from \"@deepgram/sdk\";\nconst client = new DeepgramClient();\nconst response = await client.listen.v1.media.transcribeFile(\n  createReadStream(\"audio.wav\"), { model: \"nova-3\" }\n);\nconsole.log(response.results.channels[0].alternatives[0].transcript);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/%40deepgram%2Fsdk/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40deepgram/sdk%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F147"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F152"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "google-cloud-speech-to-text",
          "name": [
            {
              "t": "fact",
              "fact": "F161"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/googleapis/google-cloud-node"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@google-cloud/speech"
            },
            {
              "label": "Docs",
              "href": "https://github.com/googleapis/google-cloud-node/blob/b3a96877f6830e2869b9026e95c10df41923790d/packages/google-cloud-speech/src/v1/speech_client.ts"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F12"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F168"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/googleapis/google-cloud-node/blob/b3a96877f6830e2869b9026e95c10df41923790d/packages/google-cloud-speech/src/v1/speech_client.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F161"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F13"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F14"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F15"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F16"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F17"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F18"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F175"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "async function asyncRecognizeGCS(\n  gcsUri,\n  encoding,\n  sampleRateHertz,\n  languageCode\n) {\n  // [START speech_transcribe_async_gcs]\n  // Imports the Google Cloud client library\n  const speech = require('@google-cloud/speech');\n\n  // Creates a client\n  const client = new speech.SpeechClient();\n\n  /**\n   * TODO(developer): Uncomment the following lines before running the sample.\n   */\n  // const gcsUri = 'gs://my-bucket/audio.raw';\n  // const encoding = 'Encoding of the audio file, e.g. LINEAR16';\n  // const sampleRateHertz = 16000;\n  // const languageCode = 'BCP-47 language code, e.g. en-US';\n\n  const config = {\n    encoding: encoding,\n    sampleRateHertz: sampleRateHertz,\n    languageCode: languageCode,\n  };\n\n  const audio = {\n    uri: gcsUri,\n  };\n\n  const request = {\n    config: config,\n    audio: audio,\n  };\n\n  // Detects speech in the audio file. This creates a recognition job that you\n  // can wait for now, or get its result later.\n  const [operation] = await client.longRunningRecognize(request);\n  // Get a Promise representation of the final result of the job\n  const [response] = await operation.promise();\n  const transcription = response.results\n    .map(result => result.alternatives[0].transcript)\n    .join('\\n');\n  console.log(`Transcription: ${transcription}`);\n  // [END speech_transcribe_async_gcs]\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/7d399e2b93deac11a75e781b0525580d8a7cceec/speech/recognize.js#L227",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F174"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20application%20%40google-cloud/speech%20speech%20recognition%20transcription%20streaming%20audio&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F161"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { SpeechClient } from \"@google-cloud/speech\";\nconst client = new SpeechClient();\nconst [response] = await client.recognize({\n  audio: { uri: process.env.AUDIO_GCS_URI },\n  config: { encoding: \"LINEAR16\", sampleRateHertz: 16000, languageCode: \"en-US\" },\n});\nconsole.log(response.results?.map(result => result.alternatives?.[0]?.transcript));\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/googleapis/google-cloud-node/blob/b3a96877f6830e2869b9026e95c10df41923790d/packages/google-cloud-speech/src/v1/speech_client.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "quickstart.js"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F166"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "aws-sdk-client-transcribe",
          "name": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aws/aws-sdk-js-v3"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@aws-sdk/client-transcribe"
            },
            {
              "label": "Docs",
              "href": "https://api.github.com/repos/aws/aws-sdk-js-v3/contents/clients/client-transcribe/src/commands/StartTranscriptionJobCommand.ts?ref=v3.1172.0"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F184"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F178"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F186"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/aws/aws-sdk-js-v3/contents/clients/client-transcribe/src/commands/StartTranscriptionJobCommand.ts?ref=v3.1172.0",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F177"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/awsdocs/aws-doc-sdk-examples",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F193"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "export const run = async () => {\n  try {\n    const data = await transcribeClient.send(\n      new StartTranscriptionJobCommand(params),\n    );\n    console.log(\"Success - put\", data);\n    return data; // For unit tests.\n  } catch (err) {\n    console.log(\"Error\", err);\n  }\n};\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/awsdocs/aws-doc-sdk-examples/blob/9d44b4c73c4d85f5b953d7063aa81fc3616f3f6c/javascriptv3/example_code/transcribe/src/transcribe_create_job.js#L39",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F192"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=%40aws-sdk/client-transcribe%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F177"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { TranscribeClient, StartTranscriptionJobCommand } from \"@aws-sdk/client-transcribe\";\nconst client = new TranscribeClient({ region: process.env.AWS_REGION });\nconst response = await client.send(new StartTranscriptionJobCommand({\n  TranscriptionJobName: process.env.TRANSCRIPTION_JOB_NAME,\n  LanguageCode: \"en-US\",\n  Media: { MediaFileUri: process.env.AUDIO_S3_URI },\n}));\nconsole.log(response.TranscriptionJob);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://api.github.com/repos/aws/aws-sdk-js-v3/contents/clients/client-transcribe/src/commands/StartTranscriptionJobCommand.ts?ref=v3.1172.0",
                  "label": [
                    {
                      "t": "text",
                      "text": "StartTranscriptionJobCommand.ts"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F182"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "assemblyai",
          "name": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/AssemblyAI/assemblyai-node-sdk"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/assemblyai"
            },
            {
              "label": "Docs",
              "href": "https://registry.npmjs.org/assemblyai/latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F31"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F196"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F198"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F197"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/assemblyai/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F32"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F33"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F34"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F35"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F36"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F37"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F38"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F39"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/run-llama/LlamaIndexTS",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "protected async transcribeOrGetTranscript(params: TranscribeParams | string) {\n    const client = await this.clientPromise;\n    if (typeof params === \"string\") {\n      return await client.transcripts.get(params);\n    } else {\n      return await client.transcripts.transcribe(params);\n    }\n  }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/run-llama/LlamaIndexTS/blob/ba24377def1b056f7eae066247e9ae1230509164/packages/providers/assemblyai/src/reader.ts#L58",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F208"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20application%20assemblyai%20speech%20recognition%20transcription%20streaming%20audio&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F195"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { AssemblyAI } from \"assemblyai\";\nconst client = new AssemblyAI({ apiKey: process.env.ASSEMBLYAI_API_KEY });\nconst transcript = await client.transcripts.transcribe({\n  audio: \"https://assembly.ai/sports_injuries.mp3\",\n  speech_models: [\"universal-3-5-pro\", \"universal-2\"],\n  language_detection: true,\n});\nconsole.log(transcript.text);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://registry.npmjs.org/assemblyai/latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F200"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "microsoft-speech-sdk",
          "name": [
            {
              "t": "fact",
              "fact": "F211"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/microsoft/cognitive-services-speech-sdk-js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/microsoft-cognitiveservices-speech-sdk"
            },
            {
              "label": "Docs",
              "href": "https://learn.microsoft.com/en-us/javascript/api/microsoft-cognitiveservices-speech-sdk/speechrecognizer?view=azure-node-latest"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F56"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F214"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://learn.microsoft.com/en-us/javascript/api/microsoft-cognitiveservices-speech-sdk/speechrecognizer?view=azure-node-latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F57"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F58"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F59"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F60"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F61"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F62"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F63"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F64"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/chat-copilot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F225"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "private generateSpeechRecognizer(token: string, region: string) {\n        const speechConfig = speechSdk.SpeechConfig.fromAuthorizationToken(token, region);\n        speechConfig.speechRecognitionLanguage = 'en-US';\n        const audioConfig = speechSdk.AudioConfig.fromDefaultMicrophoneInput();\n        return new speechSdk.SpeechRecognizer(speechConfig, audioConfig);\n    }\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/microsoft/chat-copilot/blob/23b27821baa11b2a1639070434628e5b151ce706/webapp/src/libs/services/SpeechService.ts#L35",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20application%20microsoft-cognitiveservices-speech-sdk%20speech%20recognition%20transcription%20streaming%20audio&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F211"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import * as speech from \"microsoft-cognitiveservices-speech-sdk\";\nconst authorizationToken = \"YOUR_AUTHORIZATION_TOKEN\";\nconst region = \"YOUR_AZURE_REGION\";\nconst config = speech.SpeechConfig.fromAuthorizationToken(authorizationToken, region);\nconst audio = speech.AudioConfig.fromDefaultMicrophoneInput();\nconst recognizer = new speech.SpeechRecognizer(config, audio);\nrecognizer.recognizeOnceAsync(\n  result => { console.log(result.text); recognizer.close(); },\n  error => { console.error(error); recognizer.close(); }\n);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://learn.microsoft.com/en-us/javascript/api/microsoft-cognitiveservices-speech-sdk/speechrecognizer?view=azure-node-latest",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.js"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F216"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "amazon-transcribe-streaming",
          "name": [
            {
              "t": "fact",
              "fact": "F227"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/aws/aws-sdk-js-v3"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/@aws-sdk/client-transcribe-streaming"
            },
            {
              "label": "Docs",
              "href": "https://docs.aws.amazon.com/transcribe/latest/APIReference/API_streaming_StartStreamTranscription.html"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F81"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F230"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F229"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://docs.aws.amazon.com/transcribe/latest/APIReference/API_streaming_StartStreamTranscription.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F82"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F83"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F84"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F85"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F86"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F87"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/aws-samples/generative-ai-use-cases",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "typescript",
              "code": "const startStream = async (\n    mic: MicrophoneStream,\n    languageCode?: LanguageCode,\n    speakerLabel: boolean = false,\n    languageOptions?: string[],\n    enableMultiLanguage: boolean = false\n  ): Promise<StreamOutcome> => {\n    if (!transcribeClient) return { connected: false, receivedResults: false };\n\n    // Update Language\n    if (languageCode) {\n      setLanguage(languageCode);\n    }\n\n    const audioStream = async function* () {\n      for await (const chunk of mic as unknown as Buffer[]) {\n        yield {\n          AudioEvent: {\n            AudioChunk: pcmEncodeChunk(chunk),\n          },\n        };\n      }\n    };\n\n    // Best Practice: https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html\n    let commandParams;\n\n    if (enableMultiLanguage) {\n      // Multi-language identification mode (bidirectional translation)\n      commandParams = {\n        LanguageCode: undefined,\n        IdentifyLanguage: false,\n        IdentifyMultipleLanguages: true,\n        LanguageOptions: languageOptions\n          ? languageOptions.join(',')\n          : getTranscribeLanguageOptions().join(','),\n      };\n    } else if (languageCode) {\n      // Specific language mode\n      commandParams = {\n        LanguageCode: languageCode,\n        IdentifyLanguage: false,\n        IdentifyMultipleLanguages: false,\n        LanguageOptions: undefined,\n      };\n    } else {\n      // Auto language identification mode\n      commandParams = {\n        LanguageCode: undefined,\n        IdentifyLanguage: true,\n        IdentifyMultipleLanguages: false,\n        LanguageOptions: languageOptions\n          ? languageOptions.join(',')\n          : getTranscribeLanguageOptions().join(','),\n      };\n    }\n\n    const command = new StartStreamTranscriptionCommand({\n      ...commandParams,\n      MediaEncoding: 'pcm',\n      MediaSampleRateHertz: getTranscribeSampleRate(mic.context.sampleRate),\n      AudioStream: audioStream(),\n      ShowSpeakerLabel: speakerLabel,\n    });\n\n    let connected = false;\n    let receivedResults = false;\n    try {\n      const response = await transcribeClient.send(command);\n      connected = true;\n\n      if (response.TranscriptResultStream) {\n        // This snippet should be put into an async function\n        for await (const event of response.TranscriptResultStream) {\n          if (\n            event.TranscriptEvent?.Transcript?.Results &&\n            event.TranscriptEvent.Transcript?.Results.length > 0\n          ) {\n            receivedResults = true;\n            // Get multiple possible results, but this code only processes a single result\n            const result = event.TranscriptEvent.Transcript?.Results[0];\n\n            // Update Language\n            if (result.LanguageCode) {\n              setLanguage(result.LanguageCode);\n            }\n\n            // Process Multiple Speaker\n            const transcriptItems =\n              result.Alternatives?.flatMap(\n                (alternative) => alternative.Items ?? []\n              ) ?? [];\n            // Merge consecutive transcript with same Speaker\n            const mergedTranscripts = transcriptItems.reduce((acc, curr) => {\n              if (acc.length > 0 && curr.Type === 'punctuation') {\n                acc[acc.length - 1].Content += curr.Content || '';\n              } else if (\n                acc.length > 0 &&\n                acc[acc.length - 1].Speaker === curr.Speaker\n              ) {\n                acc[acc.length - 1].Content += ' ' + (curr.Content || '');\n              } else {\n                acc.push(curr);\n              }\n              return acc;\n            }, [] as Item[]);\n            const transcripts: Transcript[] = mergedTranscripts?.map(\n              (item) => ({\n                speakerLabel: item.Speaker ? 'spk_' + item.Speaker : undefined,\n                transcript: item.Content || '',\n              })\n            );\n\n            // Keep timestamps monotonic across automatic reconnections\n            const startTime = (result.StartTime ?? 0) + timeOffsetRef.current;\n            const endTime = (result.EndTime ?? 0) + timeOffsetRef.current;\n            lastEndTimeRef.current = Math.max(lastEndTimeRef.current, endTime);\n\n            setRawTranscripts((prev) => {\n              if (prev.length === 0 || !prev[prev.length - 1].isPartial) {\n                // segment is complete\n                const tmp = update(prev, {\n                  $push: [\n                    {\n                      resultId:\n                        result.ResultId ?? `mic-${Date.now()}-${Math.random()}`,\n                      startTime,\n                      endTime,\n                      isPartial: result.IsPartial ?? false,\n                      transcripts,\n                      languageCode: result.LanguageCode,\n                    },\n                  ],\n                });\n                return tmp;\n              } else {\n                // segment is NOT complete(overrides the previous segment's transcript)\n                const tmp = update(prev, {\n                  $splice: [\n                    [\n                      prev.length - 1,\n                      1,\n                      {\n                        resultId:\n                          result.ResultId ??\n                          `mic-${Date.now()}-${Math.random()}`,\n                        startTime,\n                        endTime,\n                        isPartial: result.IsPartial ?? false,\n                        transcripts,\n                        languageCode: result.LanguageCode,\n                      },\n                    ],\n                  ],\n                });\n                return tmp;\n              }\n            });\n          }\n        }\n      }\n    } catch (error) {\n      console.error(error);\n    }\n    return { connected, receivedResults };\n  };\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/aws-samples/generative-ai-use-cases/blob/f3a73cb8cc12898cf046176033f7d1ae3828497a/packages/web/src/hooks/useMicrophone.ts#L137",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20TypeScript%20application%20%40aws-sdk/client-transcribe-streaming%20speech%20recognition%20transcription%20streaming%20audio&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F227"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "typescript",
              "code": "import { createReadStream } from \"node:fs\";\nimport { TranscribeStreamingClient, StartStreamTranscriptionCommand } from \"@aws-sdk/client-transcribe-streaming\";\nconst client = new TranscribeStreamingClient({ region: process.env.AWS_REGION });\nasync function* audio() {\n  for await (const chunk of createReadStream(\"audio.pcm\", { highWaterMark: 3200 }))\n    yield { AudioEvent: { AudioChunk: chunk } };\n}\nconst response = await client.send(new StartStreamTranscriptionCommand({\n  LanguageCode: \"en-US\", MediaEncoding: \"pcm\", MediaSampleRateHertz: 16000, AudioStream: audio(),\n}));\nfor await (const event of response.TranscriptResultStream ?? []) console.log(event.TranscriptEvent);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://docs.aws.amazon.com/transcribe/latest/APIReference/API_streaming_StartStreamTranscription.html",
                  "label": [
                    {
                      "t": "text",
                      "text": "transcribeClient.js"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F232"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "react-speech-recognition",
          "name": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/JamesBrill/react-speech-recognition"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/react-speech-recognition"
            },
            {
              "label": "Docs",
              "href": "https://github.com/JamesBrill/react-speech-recognition/blob/master/docs/API.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F250"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/JamesBrill/react-speech-recognition/blob/master/docs/API.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F243"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/Mintplex-Labs/anything-llm",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "tsx",
              "code": "export default function BrowserNativeSTT({ sendCommand }) {\n  const previousTranscriptRef = useRef(\"\");\n  const {\n    transcript,\n    listening,\n    resetTranscript,\n    browserSupportsSpeechRecognition,\n    browserSupportsContinuousListening,\n    isMicrophoneAvailable,\n  } = useSpeechRecognition({\n    clearTranscriptOnListen: true,\n  });\n\n  function startSTTSession() {\n    if (!isMicrophoneAvailable) {\n      alert(\n        \"AnythingLLM does not have access to microphone. Please enable for this site to use this feature.\"\n      );\n      return;\n    }\n\n    resetTranscript();\n    previousTranscriptRef.current = \"\";\n    SpeechRecognition.startListening({\n      continuous: browserSupportsContinuousListening,\n      language: window?.navigator?.language ?? \"en-US\",\n    });\n  }\n\n  function endSTTSession() {\n    SpeechRecognition.stopListening();\n\n    // If auto submit is enabled, send an empty string to the chat window to submit the current transcript\n    // since every chunk of text should have been streamed to the chat window by now.\n    if (Appearance.get(\"autoSubmitSttInput\")) {\n      sendCommand({\n        text: \"\",\n        autoSubmit: true,\n        writeMode: \"append\",\n      });\n    }\n\n    resetTranscript();\n    previousTranscriptRef.current = \"\";\n    clearTimeout(timeout);\n  }\n\n  useEffect(() => {\n    if (transcript?.length > 0 && listening) {\n      const previousTranscript = previousTranscriptRef.current;\n      const newContent = transcript.slice(previousTranscript.length);\n\n      // Stream just the diff of the new content since transcript is an accumulating string.\n      // and not just the new content transcribed.\n      if (newContent.length > 0)\n        sendCommand({ text: newContent, writeMode: \"append\" });\n\n      previousTranscriptRef.current = transcript;\n      clearTimeout(timeout);\n      timeout = setTimeout(() => {\n        endSTTSession();\n      }, SILENCE_INTERVAL);\n    }\n  }, [transcript, listening]);\n\n  if (!browserSupportsSpeechRecognition) return null;\n  return (\n    <MicButton\n      listening={listening}\n      onStart={startSTTSession}\n      onStop={endSTTSession}\n    />\n  );\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/Mintplex-Labs/anything-llm/blob/c4e4e677ec5611fb488f8d46782813ae994df59e/frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/BrowserNative/index.jsx#L18",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=react-speech-recognition%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F243"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "tsx",
              "code": "import SpeechRecognition, { useSpeechRecognition } from \"react-speech-recognition\";\nexport default function Dictation() {\n  const { transcript, browserSupportsSpeechRecognition } = useSpeechRecognition();\n  if (!browserSupportsSpeechRecognition) return <p>Speech recognition is unavailable.</p>;\n  return <>\n    <button onClick={() => SpeechRecognition.startListening()}>Start</button>\n    <button onClick={() => SpeechRecognition.stopListening()}>Stop</button>\n    <p>{transcript}</p>\n  </>;\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/JamesBrill/react-speech-recognition/blob/master/docs/API.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "API.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F248"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript speech recognition library should I use?",
      "a": [
        {
          "t": "text",
          "text": "The speech service decides the library. "
        },
        {
          "t": "link",
          "href": "#deepgram-sdk",
          "label": [
            {
              "t": "text",
              "text": "Deepgram"
            }
          ]
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "link",
          "href": "#assemblyai",
          "label": [
            {
              "t": "text",
              "text": "AssemblyAI"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "link",
          "href": "#elevenlabs-elevenlabs-js",
          "label": [
            {
              "t": "text",
              "text": "ElevenLabs"
            }
          ]
        },
        {
          "t": "text",
          "text": " offer SDKs for prerecorded and live transcription. "
        },
        {
          "t": "link",
          "href": "#react-speech-recognition",
          "label": [
            {
              "t": "text",
              "text": "react-speech-recognition"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits React apps that use the browser's own speech recognition."
        }
      ]
    },
    {
      "q": "What is speaker diarization?",
      "a": [
        {
          "t": "text",
          "text": "Speaker diarization labels which speaker said each part of a transcript. Every cloud SDK in this comparison except "
        },
        {
          "t": "link",
          "href": "#react-speech-recognition",
          "label": [
            {
              "t": "text",
              "text": "react-speech-recognition"
            }
          ]
        },
        {
          "t": "text",
          "text": " returns speaker labels."
        }
      ]
    },
    {
      "q": "What is the Web Speech API?",
      "a": [
        {
          "t": "text",
          "text": "The Web Speech API is the browser's built-in speech recognition interface. "
        },
        {
          "t": "link",
          "href": "#react-speech-recognition",
          "label": [
            {
              "t": "text",
              "text": "react-speech-recognition"
            }
          ]
        },
        {
          "t": "text",
          "text": " wraps it in a React hook that returns the transcript and reports browser support."
        }
      ]
    },
    {
      "q": "Deepgram vs AssemblyAI: which should I use?",
      "a": [
        {
          "t": "text",
          "text": "Both "
        },
        {
          "t": "link",
          "href": "#deepgram-sdk",
          "label": [
            {
              "t": "text",
              "text": "Deepgram"
            }
          ]
        },
        {
          "t": "text",
          "text": " and "
        },
        {
          "t": "link",
          "href": "#assemblyai",
          "label": [
            {
              "t": "text",
              "text": "AssemblyAI"
            }
          ]
        },
        {
          "t": "text",
          "text": " offer JavaScript SDKs for prerecorded and live audio with speaker labels. A test on the app's own recordings shows which service transcribes them better."
        }
      ]
    },
    {
      "q": "How do I transcribe live audio in JavaScript?",
      "a": [
        {
          "t": "text",
          "text": "A streaming SDK sends audio chunks over an open connection and returns partial transcripts as the speaker talks. "
        },
        {
          "t": "link",
          "href": "#amazon-transcribe-streaming",
          "label": [
            {
              "t": "text",
              "text": "AWS Transcribe Streaming"
            }
          ]
        },
        {
          "t": "text",
          "text": ", "
        },
        {
          "t": "link",
          "href": "#microsoft-speech-sdk",
          "label": [
            {
              "t": "text",
              "text": "Microsoft Speech SDK"
            }
          ]
        },
        {
          "t": "text",
          "text": ", and "
        },
        {
          "t": "link",
          "href": "#assemblyai",
          "label": [
            {
              "t": "text",
              "text": "AssemblyAI"
            }
          ]
        },
        {
          "t": "text",
          "text": " support live audio."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, @google-cloud/speech",
      "display": "Google Cloud Speech-to-Text",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, @google-cloud/speech",
      "display": "3.5M",
      "asOf": "2026-11-16"
    },
    "F3": {
      "label": "License, @google-cloud/speech",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, @google-cloud/speech",
      "display": "8.2.1",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, @google-cloud/speech",
      "display": "v8.2.1",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, @google-cloud/speech",
      "display": "3.2K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "Live audio, @google-cloud/speech",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Async file jobs, @google-cloud/speech",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Speaker labels, @google-cloud/speech",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Word timestamps, @google-cloud/speech",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Install, @google-cloud/speech",
      "display": "npm install @google-cloud/speech",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "What it does, @google-cloud/speech",
      "display": "Recognizes speech through Google Cloud's Node.js client.",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "strengths lead, @google-cloud/speech",
      "display": "Processes recordings asynchronously",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths, @google-cloud/speech",
      "display": "Use longRunningRecognize to retrieve a transcript when processing finishes.",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths lead, @google-cloud/speech",
      "display": "Returns speaker-tagged words",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths, @google-cloud/speech",
      "display": "Enable diarization to attach speaker labels to recognized words.",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "limitations lead, @google-cloud/speech",
      "display": "Streaming requires gRPC",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations, @google-cloud/speech",
      "display": "Route live audio through a gRPC-capable Node backend.",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "Quickstart, @google-cloud/speech",
      "display": "// Copyright 2026 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n//      http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n'use strict';\n\nfunction main() {\n  // [START speech_quickstart]\n  // Imports the Google Cloud client library\n  const speech = require('@google-cloud/speech');\n\n  // Creates a client\n  const client = new speech.SpeechClient();\n\n  async function quickstart() {\n    // The path to the remote LINEAR16 file\n    const gcsUri = 'gs://cloud-samples-data/speech/brooklyn_bridge.raw';\n\n    // The audio file's encoding, sample rate in hertz, and BCP-47 language code\n    const audio = {\n      uri: gcsUri,\n    };\n    const config = {\n      encoding: 'LINEAR16',\n      sampleRateHertz: 16000,\n      languageCode: 'en-US',\n    };\n    const request = {\n      audio: audio,\n      config: config,\n    };\n\n    // Detects speech in the audio file\n    const [response] = await client.recognize(request);\n    const transcription = response.results\n      .map(result => result.alternatives[0].transcript)\n      .join('\\n');\n    console.log(`Transcription: ${transcription}`);\n  }\n  quickstart();\n  // [END speech_quickstart]\n}\n\nprocess.on('unhandledRejection', err => {\n  console.error(err.message);\n  process.exitCode = 1;\n});\n\nmain(...process.argv.slice(2));\n",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "Library name, assemblyai",
      "display": "AssemblyAI",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "Monthly downloads, assemblyai",
      "display": "2.9M",
      "asOf": "2026-11-16"
    },
    "F22": {
      "label": "License, assemblyai",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Package release, assemblyai",
      "display": "4.43.3",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Undated package release, assemblyai",
      "display": "v4.43.3",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Repository stars, assemblyai",
      "display": "77",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Live audio, assemblyai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Async file jobs, assemblyai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F28": {
      "label": "Speaker labels, assemblyai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Word timestamps, assemblyai",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F30": {
      "label": "Install, assemblyai",
      "display": "npm install assemblyai",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "What it does, assemblyai",
      "display": "Provides JavaScript interfaces for asynchronous and streaming transcription.",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "strengths lead, assemblyai",
      "display": "Waits for completed file transcripts",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "strengths, assemblyai",
      "display": "transcribe submits the job and polls until it finishes.",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "strengths lead, assemblyai",
      "display": "Returns speaker-labeled utterances",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "strengths, assemblyai",
      "display": "Set speaker_labels to group the transcript by speaker.",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "limitations lead, assemblyai",
      "display": "Synchronous word timings are opt-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "limitations, assemblyai",
      "display": "Set timestamps to true when the synchronous transcript needs timings.",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "limitations lead, assemblyai",
      "display": "Browser streaming needs token setup",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "limitations, assemblyai",
      "display": "Create a temporary streaming token on a server.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "Quickstart, assemblyai",
      "display": "import { AssemblyAI } from \"assemblyai\";\n\nconst baseUrl = \"https://api.assemblyai.com\";\n\nconst client = new AssemblyAI({\n  apiKey: \"YOUR_API_KEY\",\n  baseUrl: baseUrl,\n});\n\n// Transcribe file at remote URL\nconst audioFile = \"https://assembly.ai/sports_injuries.mp3\";\n\nconst params = {\n  audio: audioFile,\n  speech_models: [\"universal-3-5-pro\", \"universal-2\"],\n  language_detection: true,\n};\n\nconst run = async () => {\n  const transcript = await client.transcripts.transcribe(params);\n  console.log(transcript.text);\n};\n\nrun();\n",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "Project function, assemblyai",
      "display": "protected async transcribeOrGetTranscript(params: TranscribeParams | string) {\n    const client = await this.clientPromise;\n    if (typeof params === \"string\") {\n      return await client.transcripts.get(params);\n    } else {\n      return await client.transcripts.transcribe(params);\n    }\n  }\n",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "Project function reference, assemblyai",
      "display": "reader.ts · transcribeOrGetTranscript()",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "Project repository, assemblyai",
      "display": "run-llama/LlamaIndexTS",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "Project stars, run-llama/LlamaIndexTS",
      "display": "3.1K",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "Project push date, run-llama/LlamaIndexTS",
      "display": "Mar 2026",
      "asOf": "2026-03-11"
    },
    "F46": {
      "label": "Library name, microsoft-cognitiveservices-speech-sdk",
      "display": "Microsoft Speech SDK",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Monthly downloads, microsoft-cognitiveservices-speech-sdk",
      "display": "2.7M",
      "asOf": "2026-11-16"
    },
    "F48": {
      "label": "License, microsoft-cognitiveservices-speech-sdk",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Package release, microsoft-cognitiveservices-speech-sdk",
      "display": "1.53.0",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Undated package release, microsoft-cognitiveservices-speech-sdk",
      "display": "v1.53.0",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Repository stars, microsoft-cognitiveservices-speech-sdk",
      "display": "327",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Live audio, microsoft-cognitiveservices-speech-sdk",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Speaker labels, microsoft-cognitiveservices-speech-sdk",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Word timestamps, microsoft-cognitiveservices-speech-sdk",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "Install, microsoft-cognitiveservices-speech-sdk",
      "display": "npm install microsoft-cognitiveservices-speech-sdk",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "What it does, microsoft-cognitiveservices-speech-sdk",
      "display": "Provides browser and Node.js interfaces to Microsoft's Speech SDK.",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "strengths lead, microsoft-cognitiveservices-speech-sdk",
      "display": "Accepts browser microphone input",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "strengths, microsoft-cognitiveservices-speech-sdk",
      "display": "Build a browser recognizer with AudioConfig.fromDefaultMicrophoneInput.",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "strengths lead, microsoft-cognitiveservices-speech-sdk",
      "display": "Separates intermediate and final results",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "strengths, microsoft-cognitiveservices-speech-sdk",
      "display": "Use recognizing and recognized to handle tentative and final text.",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "limitations lead, microsoft-cognitiveservices-speech-sdk",
      "display": "Node microphone input is unsupported",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "limitations, microsoft-cognitiveservices-speech-sdk",
      "display": "Feed a file or audio stream to the Node recognizer.",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "limitations lead, microsoft-cognitiveservices-speech-sdk",
      "display": "recognizeOnceAsync stops after one utterance",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "limitations, microsoft-cognitiveservices-speech-sdk",
      "display": "Use continuous recognition for sessions containing multiple utterances.",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "Quickstart, microsoft-cognitiveservices-speech-sdk",
      "display": "// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n  // <code>\n  \n  // pull in the required packages.\n  import * as sdk from \"microsoft-cognitiveservices-speech-sdk\";\n  import * as fs from \"fs\";\n  \n  // replace with your own subscription key,\n  // service endpoint (e.g., \"https://my-speech-resource.cognitiveservices.azure.com\"), and\n  // the name of the file you want to run\n  // through the speech recognizer.\n  var subscriptionKey = \"YourSubscriptionKey\";\n  var endpoint = \"YourServiceEndpoint\"; // e.g., \"https://my-speech-resource.cognitiveservices.azure.com\"\n  var filename = \"YourAudioFile.wav\"; // 16000 Hz, Mono\n  \n  // create the push stream we need for the speech sdk.\n  var pushStream = sdk.AudioInputStream.createPushStream();\n  \n  // open the file and push it to the push stream.\n  fs.createReadStream(filename).on('data', function(arrayBuffer) {\n    pushStream.write(arrayBuffer.slice());\n  }).on('end', function() {\n    pushStream.close();\n  });\n  \n  // we are done with the setup\n  console.log(\"Now recognizing from: \" + filename);\n  \n  // now create the audio-config pointing to our stream and\n  // the speech config specifying the language.\n  var audioConfig = sdk.AudioConfig.fromStreamInput(pushStream);\n  var speechConfig = sdk.SpeechConfig.fromEndpoint(new URL(endpoint), subscriptionKey);\n  \n  // setting the recognition language to English.\n  speechConfig.speechRecognitionLanguage = \"en-US\";\n  \n  // create the speech recognizer.\n  var recognizer = new sdk.SpeechRecognizer(speechConfig, audioConfig);\n  \n  // start the recognizer and wait for a result.\n  recognizer.recognizeOnceAsync(\n    function (result) {\n      console.log(result);\n  \n      recognizer.close();\n      recognizer = undefined;\n    },\n    function (err) {\n      console.trace(\"err - \" + err);\n  \n      recognizer.close();\n      recognizer = undefined;\n    });\n  // </code>\n  \n  ",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "Project function, microsoft-cognitiveservices-speech-sdk",
      "display": "private generateSpeechRecognizer(token: string, region: string) {\n        const speechConfig = speechSdk.SpeechConfig.fromAuthorizationToken(token, region);\n        speechConfig.speechRecognitionLanguage = 'en-US';\n        const audioConfig = speechSdk.AudioConfig.fromDefaultMicrophoneInput();\n        return new speechSdk.SpeechRecognizer(speechConfig, audioConfig);\n    }\n",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "Project function reference, microsoft-cognitiveservices-speech-sdk",
      "display": "SpeechService.ts · generateSpeechRecognizer()",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "Project repository, microsoft-cognitiveservices-speech-sdk",
      "display": "microsoft/chat-copilot",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "Project stars, microsoft/chat-copilot",
      "display": "2.4K",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Project push date, microsoft/chat-copilot",
      "display": "Aug 2026",
      "asOf": "2026-08-20"
    },
    "F71": {
      "label": "Library name, @aws-sdk/client-transcribe-streaming",
      "display": "Amazon Transcribe Streaming",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Monthly downloads, @aws-sdk/client-transcribe-streaming",
      "display": "2.1M",
      "asOf": "2026-11-16"
    },
    "F73": {
      "label": "License, @aws-sdk/client-transcribe-streaming",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Package release, @aws-sdk/client-transcribe-streaming",
      "display": "3.1170.0",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Undated package release, @aws-sdk/client-transcribe-streaming",
      "display": "v3.1170.0",
      "asOf": "2026-11-17"
    },
    "F76": {
      "label": "Repository stars, @aws-sdk/client-transcribe-streaming",
      "display": "3.7K",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Live audio, @aws-sdk/client-transcribe-streaming",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F78": {
      "label": "Speaker labels, @aws-sdk/client-transcribe-streaming",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Word timestamps, @aws-sdk/client-transcribe-streaming",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Install, @aws-sdk/client-transcribe-streaming",
      "display": "npm install @aws-sdk/client-transcribe-streaming @aws-sdk/client-cognito-identity @aws-sdk/credential-provider-cognito-identity microphone-stream",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "What it does, @aws-sdk/client-transcribe-streaming",
      "display": "Provides the JavaScript client for Amazon Transcribe streaming.",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "strengths lead, @aws-sdk/client-transcribe-streaming",
      "display": "Streams partial and final transcripts",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "strengths, @aws-sdk/client-transcribe-streaming",
      "display": "Read IsPartial before committing transcript segments to application state.",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "strengths lead, @aws-sdk/client-transcribe-streaming",
      "display": "Runs in browser or Node",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "strengths, @aws-sdk/client-transcribe-streaming",
      "display": "Use WebSocket in browsers and HTTP/2 in Node.",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "limitations lead, @aws-sdk/client-transcribe-streaming",
      "display": "Sample rate must match audio",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "limitations, @aws-sdk/client-transcribe-streaming",
      "display": "Set MediaSampleRateHertz to the stream's actual sample rate.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "limitations lead, @aws-sdk/client-transcribe-streaming",
      "display": "Partial transcripts can change",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "limitations, @aws-sdk/client-transcribe-streaming",
      "display": "Replace tentative text until IsPartial becomes false.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Quickstart, @aws-sdk/client-transcribe-streaming",
      "display": "// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/*\nABOUT THIS NODE.JS EXAMPLE: This example works with the AWS SDK for JavaScript version 3 (v3),\nwhich is available at https://github.com/aws/aws-sdk-js-v3.\n\nPurpose:\nThis file handles the transcription of speech to text using AWS Transcribe\n\n*/\n// snippet-start:[transcribeClient.JavaScript.streaming.createclientv3]\nimport { CognitoIdentityClient } from \"@aws-sdk/client-cognito-identity\";\nimport { fromCognitoIdentityPool } from \"@aws-sdk/credential-provider-cognito-identity\";\nimport { TranscribeStreamingClient } from \"@aws-sdk/client-transcribe-streaming\";\nimport MicrophoneStream from \"microphone-stream\";\nimport { StartStreamTranscriptionCommand } from \"@aws-sdk/client-transcribe-streaming\";\nimport * as awsID from \"./awsID.js\";\n\n/** @type {MicrophoneStream} */\nconst MicrophoneStreamImpl = MicrophoneStream.default;\n\nconst SAMPLE_RATE = 44100;\n/** @type {MicrophoneStream | undefined} */\nlet microphoneStream = undefined;\n/** @type {TranscribeStreamingClient | undefined} */\nlet transcribeClient = undefined;\n\nexport const startRecording = async (language, callback) => {\n  if (!language) {\n    return false;\n  }\n  if (microphoneStream || transcribeClient) {\n    stopRecording();\n  }\n  createTranscribeClient();\n  createMicrophoneStream();\n  await startStreaming(language, callback);\n};\n\nexport const stopRecording = () => {\n  if (microphoneStream) {\n    microphoneStream.stop();\n    microphoneStream.destroy();\n    microphoneStream = undefined;\n  }\n  if (transcribeClient) {\n    transcribeClient.destroy();\n    transcribeClient = undefined;\n  }\n};\n\nconst createTranscribeClient = () => {\n  transcribeClient = new TranscribeStreamingClient({\n    region: awsID.REGION,\n    credentials: fromCognitoIdentityPool({\n      client: new CognitoIdentityClient({ region: awsID.REGION }),\n      identityPoolId: awsID.IDENTITY_POOL_ID,\n    }),\n  });\n};\n\nconst createMicrophoneStream = async () => {\n  microphoneStream = new MicrophoneStreamImpl();\n  microphoneStream.setStream(\n    await window.navigator.mediaDevices.getUserMedia({\n      video: false,\n      audio: true,\n    }),\n  );\n};\n\nconst startStreaming = async (language, callback) => {\n  const command = new StartStreamTranscriptionCommand({\n    LanguageCode: language,\n    MediaEncoding: \"pcm\",\n    MediaSampleRateHertz: SAMPLE_RATE,\n    AudioStream: getAudioStream(),\n  });\n  const data = await transcribeClient.send(command);\n  for await (const event of data.TranscriptResultStream) {\n    for (const result of event.TranscriptEvent.Transcript.Results || []) {\n      if (result.IsPartial === false) {\n        const noOfResults = result.Alternatives[0].Items.length;\n        for (let i = 0; i < noOfResults; i++) {\n          console.log(result.Alternatives[0].Items[i].Content);\n          callback(`${result.Alternatives[0].Items[i].Content} `);\n        }\n      }\n    }\n  }\n};\n\nconst getAudioStream = async function* () {\n  if (!microphoneStream) {\n    throw new Error(\n      \"Cannot get audio stream. microphoneStream is not initialized.\",\n    );\n  }\n\n  for await (const chunk of /** @type {[][]} */ (microphoneStream)) {\n    if (chunk.length <= SAMPLE_RATE) {\n      yield {\n        AudioEvent: {\n          AudioChunk: encodePCMChunk(chunk),\n        },\n      };\n    }\n  }\n};\n\nconst encodePCMChunk = (chunk) => {\n  /** @type {Float32Array} */\n  const input = MicrophoneStreamImpl.toRaw(chunk);\n  let offset = 0;\n  const buffer = new ArrayBuffer(input.length * 2);\n  const view = new DataView(buffer);\n  for (let i = 0; i < input.length; i++, offset += 2) {\n    const s = Math.max(-1, Math.min(1, input[i]));\n    view.setInt16(offset, s < 0 ? s * 0x8000 : s * 0x7fff, true);\n  }\n  return Buffer.from(buffer);\n};\n\n// snippet-end:[transcribeClient.JavaScript.streaming.createclientv3]\n",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Project function, @aws-sdk/client-transcribe-streaming",
      "display": "const startStream = async (\n    mic: MicrophoneStream,\n    languageCode?: LanguageCode,\n    speakerLabel: boolean = false,\n    languageOptions?: string[],\n    enableMultiLanguage: boolean = false\n  ): Promise<StreamOutcome> => {\n    if (!transcribeClient) return { connected: false, receivedResults: false };\n\n    // Update Language\n    if (languageCode) {\n      setLanguage(languageCode);\n    }\n\n    const audioStream = async function* () {\n      for await (const chunk of mic as unknown as Buffer[]) {\n        yield {\n          AudioEvent: {\n            AudioChunk: pcmEncodeChunk(chunk),\n          },\n        };\n      }\n    };\n\n    // Best Practice: https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html\n    let commandParams;\n\n    if (enableMultiLanguage) {\n      // Multi-language identification mode (bidirectional translation)\n      commandParams = {\n        LanguageCode: undefined,\n        IdentifyLanguage: false,\n        IdentifyMultipleLanguages: true,\n        LanguageOptions: languageOptions\n          ? languageOptions.join(',')\n          : getTranscribeLanguageOptions().join(','),\n      };\n    } else if (languageCode) {\n      // Specific language mode\n      commandParams = {\n        LanguageCode: languageCode,\n        IdentifyLanguage: false,\n        IdentifyMultipleLanguages: false,\n        LanguageOptions: undefined,\n      };\n    } else {\n      // Auto language identification mode\n      commandParams = {\n        LanguageCode: undefined,\n        IdentifyLanguage: true,\n        IdentifyMultipleLanguages: false,\n        LanguageOptions: languageOptions\n          ? languageOptions.join(',')\n          : getTranscribeLanguageOptions().join(','),\n      };\n    }\n\n    const command = new StartStreamTranscriptionCommand({\n      ...commandParams,\n      MediaEncoding: 'pcm',\n      MediaSampleRateHertz: getTranscribeSampleRate(mic.context.sampleRate),\n      AudioStream: audioStream(),\n      ShowSpeakerLabel: speakerLabel,\n    });\n\n    let connected = false;\n    let receivedResults = false;\n    try {\n      const response = await transcribeClient.send(command);\n      connected = true;\n\n      if (response.TranscriptResultStream) {\n        // This snippet should be put into an async function\n        for await (const event of response.TranscriptResultStream) {\n          if (\n            event.TranscriptEvent?.Transcript?.Results &&\n            event.TranscriptEvent.Transcript?.Results.length > 0\n          ) {\n            receivedResults = true;\n            // Get multiple possible results, but this code only processes a single result\n            const result = event.TranscriptEvent.Transcript?.Results[0];\n\n            // Update Language\n            if (result.LanguageCode) {\n              setLanguage(result.LanguageCode);\n            }\n\n            // Process Multiple Speaker\n            const transcriptItems =\n              result.Alternatives?.flatMap(\n                (alternative) => alternative.Items ?? []\n              ) ?? [];\n            // Merge consecutive transcript with same Speaker\n            const mergedTranscripts = transcriptItems.reduce((acc, curr) => {\n              if (acc.length > 0 && curr.Type === 'punctuation') {\n                acc[acc.length - 1].Content += curr.Content || '';\n              } else if (\n                acc.length > 0 &&\n                acc[acc.length - 1].Speaker === curr.Speaker\n              ) {\n                acc[acc.length - 1].Content += ' ' + (curr.Content || '');\n              } else {\n                acc.push(curr);\n              }\n              return acc;\n            }, [] as Item[]);\n            const transcripts: Transcript[] = mergedTranscripts?.map(\n              (item) => ({\n                speakerLabel: item.Speaker ? 'spk_' + item.Speaker : undefined,\n                transcript: item.Content || '',\n              })\n            );\n\n            // Keep timestamps monotonic across automatic reconnections\n            const startTime = (result.StartTime ?? 0) + timeOffsetRef.current;\n            const endTime = (result.EndTime ?? 0) + timeOffsetRef.current;\n            lastEndTimeRef.current = Math.max(lastEndTimeRef.current, endTime);\n\n            setRawTranscripts((prev) => {\n              if (prev.length === 0 || !prev[prev.length - 1].isPartial) {\n                // segment is complete\n                const tmp = update(prev, {\n                  $push: [\n                    {\n                      resultId:\n                        result.ResultId ?? `mic-${Date.now()}-${Math.random()}`,\n                      startTime,\n                      endTime,\n                      isPartial: result.IsPartial ?? false,\n                      transcripts,\n                      languageCode: result.LanguageCode,\n                    },\n                  ],\n                });\n                return tmp;\n              } else {\n                // segment is NOT complete(overrides the previous segment's transcript)\n                const tmp = update(prev, {\n                  $splice: [\n                    [\n                      prev.length - 1,\n                      1,\n                      {\n                        resultId:\n                          result.ResultId ??\n                          `mic-${Date.now()}-${Math.random()}`,\n                        startTime,\n                        endTime,\n                        isPartial: result.IsPartial ?? false,\n                        transcripts,\n                        languageCode: result.LanguageCode,\n                      },\n                    ],\n                  ],\n                });\n                return tmp;\n              }\n            });\n          }\n        }\n      }\n    } catch (error) {\n      console.error(error);\n    }\n    return { connected, receivedResults };\n  };\n",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Project function reference, @aws-sdk/client-transcribe-streaming",
      "display": "useMicrophone.ts · startStream()",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "Project repository, @aws-sdk/client-transcribe-streaming",
      "display": "aws-samples/generative-ai-use-cases",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "Project stars, aws-samples/generative-ai-use-cases",
      "display": "1.4K",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "Project push date, aws-samples/generative-ai-use-cases",
      "display": "Nov 2026",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "Developer need",
      "display": "Stored recordings and Google Cloud operations",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "Why choose @google-cloud/speech",
      "display": "service operations for asynchronous recordings",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Developer need in introduction",
      "display": "stored recordings and Google Cloud operations",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "When to consider assemblyai",
      "display": "SDK-managed job polling matches the recording workflow",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Developer need",
      "display": "Incremental Amazon streaming transcripts",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Why choose @aws-sdk/client-transcribe-streaming",
      "display": "explicit partial and final result handling",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Developer need in introduction",
      "display": "incremental Amazon streaming transcripts",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "When to consider microsoft-cognitiveservices-speech-sdk",
      "display": "browser recognition callbacks fit the application",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Developer need",
      "display": "Browser microphone and continuous recognition",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose microsoft-cognitiveservices-speech-sdk",
      "display": "microphone input and recognition events",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "browser microphone and continuous recognition",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "When to consider @aws-sdk/client-transcribe-streaming",
      "display": "async-iterated partial/final results are preferred",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Developer need",
      "display": "Queued audio jobs with SDK polling",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Why choose assemblyai",
      "display": "an asynchronous transcription workflow",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "Developer need in introduction",
      "display": "queued audio jobs with SDK polling",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Page introduction",
      "display": "JavaScript speech recognition libraries let application developers turn speech audio into text.",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "FAQ: Is streaming a saved recording the same as creating an asynchronous file job?",
      "display": "Google longRunningRecognize returns a service operation whose result is retrieved later.",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "FAQ: Is streaming a saved recording the same as creating an asynchronous file job?",
      "display": "AssemblyAI transcribe queues a job and polls its status.",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "FAQ: Is streaming a saved recording the same as creating an asynchronous file job?",
      "display": "Amazon streaming accepts incremental audio and sends transcription results on the same stream; saved audio bytes can still use a streaming path.",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "FAQ: Can Google's bidirectional recognition stream use the REST fallback?",
      "display": "The current released V1 Node client marks bidirectional speech recognition as gRPC-only, not REST.",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "FAQ: Can the Google starter be copied between API generations?",
      "display": "The own starter declares a V1 request with audio and config.",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "FAQ: Can the Google starter be copied between API generations?",
      "display": "V2 batch recognition requires a recognizer resource name in its request.",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "FAQ: Does Google return word offsets for every alternative?",
      "display": "The V1 time-offset guide includes offsets only for the first recognition alternative; enableWordTimeOffsets turns them on.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: Can a WAV container be sent unchanged as Amazon PCM streaming input?",
      "display": "The PCM streaming encoding is signed little-endian audio and explicitly excludes WAV framing; supply a supported encoded stream.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: When is an Amazon streaming transcript segment final?",
      "display": "IsPartial is true while a segment is incomplete; wait for the complete segment or replace tentative output as revisions arrive.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: When is an Amazon streaming transcript segment final?",
      "display": "Words can change as the recognizer receives more context.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can the Microsoft JavaScript SDK read a microphone directly in Node.js?",
      "display": "Direct microphone use is unavailable in Node.js; the SDK also accepts file or stream audio configurations.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can the Microsoft JavaScript SDK read a microphone directly in Node.js?",
      "display": "Its AudioConfig API supports microphone, file, and stream input roles.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: Which Microsoft method should handle a multi-utterance session?",
      "display": "recognizeOnceAsync stops after the first utterance; use continuous recognition for a longer session.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: Which Microsoft method should handle a multi-utterance session?",
      "display": "recognizing and recognized deliver intermediate and final recognition events.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: How does Microsoft separate speakers and request word timing?",
      "display": "Use ConversationTranscriber for speaker-separated recognition from its configured audio input.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: How does Microsoft separate speakers and request word timing?",
      "display": "SpeechConfig.requestWordLevelTimestamps opts into word-level timing.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Does AssemblyAI submit wait for a finished transcript?",
      "display": "submit lets the application start a job without waiting, while transcribe queues and polls.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Does AssemblyAI submit wait for a finished transcript?",
      "display": "An existing transcript can still be queued or processing; read its status before using it as a completed result.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: Does the AssemblyAI reader example treat a string as an audio URL?",
      "display": "The original LlamaIndex helper treats a string as an existing transcript ID; an object instead supplies transcription parameters. This is integration behavior, not a universal SDK input rule.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: Does the AssemblyAI reader example treat a string as an audio URL?",
      "display": "The SDK own workflow supplies an audio URL through the audio property.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Should an AssemblyAI browser client embed the account API key?",
      "display": "The own SDK warns that client-facing API keys are exposed; create a temporary streaming token on a server instead.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "Library name, @elevenlabs/elevenlabs-js",
      "display": "@elevenlabs/elevenlabs-js",
      "asOf": "2026-11-20"
    },
    "F134": {
      "label": "Monthly downloads, @elevenlabs/elevenlabs-js",
      "display": "5.7M",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "License, @elevenlabs/elevenlabs-js",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "Package release, @elevenlabs/elevenlabs-js",
      "display": "2.79.0",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release date, @elevenlabs/elevenlabs-js",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Install, @elevenlabs/elevenlabs-js",
      "display": "npm install @elevenlabs/elevenlabs-js@2.79.0",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Quickstart, @elevenlabs/elevenlabs-js",
      "display": "import { ElevenLabsClient } from \"@elevenlabs/elevenlabs-js\";\nconst client = new ElevenLabsClient();\nconst audio = await fetch(\"https://storage.googleapis.com/eleven-public-cdn/audio/marketing/nicole.mp3\");\nconst transcript = await client.speechToText.convert({\n  file: new Blob([await audio.arrayBuffer()], { type: \"audio/mp3\" }),\n  modelId: \"scribe_v3\",\n});\nconsole.log(transcript);\n",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Official description, @elevenlabs/elevenlabs-js",
      "display": "Provides the official JavaScript library for the ElevenLabs API.",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Quickstart source file, @elevenlabs/elevenlabs-js",
      "display": "example.mts",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Repository stars, @elevenlabs/elevenlabs-js",
      "display": "456",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Live audio, @elevenlabs/elevenlabs-js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Speaker labels, @elevenlabs/elevenlabs-js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "Recognition interface, @elevenlabs/elevenlabs-js",
      "display": "Recorded-audio conversion and Node.js WebSocket transcription",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Authentication and input boundary, @elevenlabs/elevenlabs-js",
      "display": "Node.js ESM module with fetch/Blob; configure ELEVENLABS_API_KEY as a managed server secret, an authorized ElevenLabs account, selected model access, and network access. Public audio URL is the official example fixture; no local fixture is invented.",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Library name, @deepgram/sdk",
      "display": "Deepgram JavaScript SDK",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Monthly downloads, @deepgram/sdk",
      "display": "5.3M",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "License, @deepgram/sdk",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Package release, @deepgram/sdk",
      "display": "5.20.0",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Package release date, @deepgram/sdk",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Install, @deepgram/sdk",
      "display": "npm install @deepgram/sdk@5.20.0",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Quickstart, @deepgram/sdk",
      "display": "import { createReadStream } from \"node:fs\";\nimport { DeepgramClient } from \"@deepgram/sdk\";\nconst client = new DeepgramClient();\nconst response = await client.listen.v1.media.transcribeFile(\n  createReadStream(\"audio.wav\"), { model: \"nova-3\" }\n);\nconsole.log(response.results.channels[0].alternatives[0].transcript);\n",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Official description, @deepgram/sdk",
      "display": "Provides the official JavaScript SDK for Deepgram.",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "Quickstart source file, @deepgram/sdk",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Repository stars, @deepgram/sdk",
      "display": "286",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Live audio, @deepgram/sdk",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Speaker labels, @deepgram/sdk",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Recognition interface, @deepgram/sdk",
      "display": "Recorded file/URL and versioned live WebSocket interfaces.",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Authentication and input boundary, @deepgram/sdk",
      "display": "Node.js ESM module; real readable audio.wav, DEEPGRAM_API_KEY or scoped DEEPGRAM_ACCESS_TOKEN, account/model access, and network. Browser REST calls require a separate authenticated proxy; this is a server example.",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Library name, @google-cloud/speech",
      "display": "Google Cloud Speech",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Monthly downloads, @google-cloud/speech",
      "display": "3.5M",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "License, @google-cloud/speech",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "Package release, @google-cloud/speech",
      "display": "8.2.1",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Package release date, @google-cloud/speech",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Install, @google-cloud/speech",
      "display": "npm install @google-cloud/speech@8.2.1",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Quickstart, @google-cloud/speech",
      "display": "import { SpeechClient } from \"@google-cloud/speech\";\nconst client = new SpeechClient();\nconst [response] = await client.recognize({\n  audio: { uri: process.env.AUDIO_GCS_URI },\n  config: { encoding: \"LINEAR16\", sampleRateHertz: 16000, languageCode: \"en-US\" },\n});\nconsole.log(response.results?.map(result => result.alternatives?.[0]?.transcript));\n",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Repository stars, @google-cloud/speech",
      "display": "3.2K",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Live audio, @google-cloud/speech",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Speaker labels, @google-cloud/speech",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Recognition interface, @google-cloud/speech",
      "display": "Google Cloud synchronous recognition, long-running jobs, and gRPC streaming.",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Authentication and input boundary, @google-cloud/speech",
      "display": "Node.js ESM, Application Default Credentials with Speech API enabled/billing/IAM, and AUDIO_GCS_URI identifying an accessible mono16kHz LINEAR16 recording. The request is V1, not V2; input encoding/sample rate must describe the actual recording.",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Project function, @google-cloud/speech",
      "display": "async function asyncRecognizeGCS(\n  gcsUri,\n  encoding,\n  sampleRateHertz,\n  languageCode\n) {\n  // [START speech_transcribe_async_gcs]\n  // Imports the Google Cloud client library\n  const speech = require('@google-cloud/speech');\n\n  // Creates a client\n  const client = new speech.SpeechClient();\n\n  /**\n   * TODO(developer): Uncomment the following lines before running the sample.\n   */\n  // const gcsUri = 'gs://my-bucket/audio.raw';\n  // const encoding = 'Encoding of the audio file, e.g. LINEAR16';\n  // const sampleRateHertz = 16000;\n  // const languageCode = 'BCP-47 language code, e.g. en-US';\n\n  const config = {\n    encoding: encoding,\n    sampleRateHertz: sampleRateHertz,\n    languageCode: languageCode,\n  };\n\n  const audio = {\n    uri: gcsUri,\n  };\n\n  const request = {\n    config: config,\n    audio: audio,\n  };\n\n  // Detects speech in the audio file. This creates a recognition job that you\n  // can wait for now, or get its result later.\n  const [operation] = await client.longRunningRecognize(request);\n  // Get a Promise representation of the final result of the job\n  const [response] = await operation.promise();\n  const transcription = response.results\n    .map(result => result.alternatives[0].transcript)\n    .join('\\n');\n  console.log(`Transcription: ${transcription}`);\n  // [END speech_transcribe_async_gcs]\n}\n",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "Project source file, @google-cloud/speech",
      "display": "speech/recognize.js",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Project full_name, @google-cloud/speech",
      "display": "GoogleCloudPlatform/nodejs-docs-samples",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Project stargazers_count, @google-cloud/speech",
      "display": "3.0K",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Library name, @aws-sdk/client-transcribe",
      "display": "@aws-sdk/client-transcribe",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Monthly downloads, @aws-sdk/client-transcribe",
      "display": "3.4M",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "License, @aws-sdk/client-transcribe",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Package release, @aws-sdk/client-transcribe",
      "display": "3.1172.0",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "Package release date, @aws-sdk/client-transcribe",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Install, @aws-sdk/client-transcribe",
      "display": "npm install @aws-sdk/client-transcribe@3.1172.0",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Quickstart, @aws-sdk/client-transcribe",
      "display": "import { TranscribeClient, StartTranscriptionJobCommand } from \"@aws-sdk/client-transcribe\";\nconst client = new TranscribeClient({ region: process.env.AWS_REGION });\nconst response = await client.send(new StartTranscriptionJobCommand({\n  TranscriptionJobName: process.env.TRANSCRIPTION_JOB_NAME,\n  LanguageCode: \"en-US\",\n  Media: { MediaFileUri: process.env.AUDIO_S3_URI },\n}));\nconsole.log(response.TranscriptionJob);\n",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Official description, @aws-sdk/client-transcribe",
      "display": "Provides the AWS SDK client for Amazon Transcribe in Node.js, browsers, and React Native.",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "Quickstart source file, @aws-sdk/client-transcribe",
      "display": "clients/client-transcribe/src/commands/StartTranscriptionJobCommand.ts",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Repository stars, @aws-sdk/client-transcribe",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Live audio, @aws-sdk/client-transcribe",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Speaker labels, @aws-sdk/client-transcribe",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Recognition interface, @aws-sdk/client-transcribe",
      "display": "AWS queued recorded-audio transcription jobs, not the separate streaming client.",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Authentication and input boundary, @aws-sdk/client-transcribe",
      "display": "Node.js ESM, configured AWS credentials/region and IAM permissions, unique TRANSCRIPTION_JOB_NAME, and accessible audio S3 URI in AUDIO_S3_URI. This submits a queued job; returned submission metadata is not a completed transcript.",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Project function, @aws-sdk/client-transcribe",
      "display": "export const run = async () => {\n  try {\n    const data = await transcribeClient.send(\n      new StartTranscriptionJobCommand(params),\n    );\n    console.log(\"Success - put\", data);\n    return data; // For unit tests.\n  } catch (err) {\n    console.log(\"Error\", err);\n  }\n};\n",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "Project source file, @aws-sdk/client-transcribe",
      "display": "javascriptv3/example_code/transcribe/src/transcribe_create_job.js",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Project full_name, @aws-sdk/client-transcribe",
      "display": "awsdocs/aws-doc-sdk-examples",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Project stargazers_count, @aws-sdk/client-transcribe",
      "display": "10.5K",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Library name, assemblyai",
      "display": "AssemblyAI",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Monthly downloads, assemblyai",
      "display": "2.9M",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "License, assemblyai",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Package release, assemblyai",
      "display": "4.43.4",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Package release date, assemblyai",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Install, assemblyai",
      "display": "npm install assemblyai@4.43.4",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "Quickstart, assemblyai",
      "display": "import { AssemblyAI } from \"assemblyai\";\nconst client = new AssemblyAI({ apiKey: process.env.ASSEMBLYAI_API_KEY });\nconst transcript = await client.transcripts.transcribe({\n  audio: \"https://assembly.ai/sports_injuries.mp3\",\n  speech_models: [\"universal-3-5-pro\", \"universal-2\"],\n  language_detection: true,\n});\nconsole.log(transcript.text);\n",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Repository stars, assemblyai",
      "display": "77",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Live audio, assemblyai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Speaker labels, assemblyai",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Recognition interface, assemblyai",
      "display": "Recorded-audio submit/get/poll workflow and separate streaming interface.",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Authentication and input boundary, assemblyai",
      "display": "Node.js ESM, ASSEMBLYAI_API_KEY and authorized account/model access. This helper submits and polls a recorded-audio job; the remote audio is an official public example fixture, not live microphone capture.",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project function, assemblyai",
      "display": "protected async transcribeOrGetTranscript(params: TranscribeParams | string) {\n    const client = await this.clientPromise;\n    if (typeof params === \"string\") {\n      return await client.transcripts.get(params);\n    } else {\n      return await client.transcripts.transcribe(params);\n    }\n  }\n",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project source file, assemblyai",
      "display": "packages/providers/assemblyai/src/reader.ts",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Project full_name, assemblyai",
      "display": "run-llama/LlamaIndexTS",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Project stargazers_count, assemblyai",
      "display": "3.1K",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "Library name, microsoft-cognitiveservices-speech-sdk",
      "display": "microsoft-cognitiveservices-speech-sdk",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Monthly downloads, microsoft-cognitiveservices-speech-sdk",
      "display": "2.7M",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "License, microsoft-cognitiveservices-speech-sdk",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Package release, microsoft-cognitiveservices-speech-sdk",
      "display": "1.53.0",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Package release date, microsoft-cognitiveservices-speech-sdk",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Install, microsoft-cognitiveservices-speech-sdk",
      "display": "npm install microsoft-cognitiveservices-speech-sdk@1.53.0",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart, microsoft-cognitiveservices-speech-sdk",
      "display": "import * as speech from \"microsoft-cognitiveservices-speech-sdk\";\nconst authorizationToken = \"YOUR_AUTHORIZATION_TOKEN\";\nconst region = \"YOUR_AZURE_REGION\";\nconst config = speech.SpeechConfig.fromAuthorizationToken(authorizationToken, region);\nconst audio = speech.AudioConfig.fromDefaultMicrophoneInput();\nconst recognizer = new speech.SpeechRecognizer(config, audio);\nrecognizer.recognizeOnceAsync(\n  result => { console.log(result.text); recognizer.close(); },\n  error => { console.error(error); recognizer.close(); }\n);\n",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Repository stars, microsoft-cognitiveservices-speech-sdk",
      "display": "327",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Live audio, microsoft-cognitiveservices-speech-sdk",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "Speaker labels, microsoft-cognitiveservices-speech-sdk",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Recognition interface, microsoft-cognitiveservices-speech-sdk",
      "display": "Browser or Node Speech SDK; browser microphone versus file/push-stream Node input.",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Authentication and input boundary, microsoft-cognitiveservices-speech-sdk",
      "display": "Browser TypeScript module with SDK bundling, HTTPS/microphone permission, and application-supplied authorizationToken/region obtained from its trusted token endpoint. These are required host inputs, not invented SDK variables or an embedded subscription secret. Node.js default microphone input is unsupported; use file/push-stream AudioConfig there.",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Project function, microsoft-cognitiveservices-speech-sdk",
      "display": "private generateSpeechRecognizer(token: string, region: string) {\n        const speechConfig = speechSdk.SpeechConfig.fromAuthorizationToken(token, region);\n        speechConfig.speechRecognitionLanguage = 'en-US';\n        const audioConfig = speechSdk.AudioConfig.fromDefaultMicrophoneInput();\n        return new speechSdk.SpeechRecognizer(speechConfig, audioConfig);\n    }\n",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Project source file, microsoft-cognitiveservices-speech-sdk",
      "display": "webapp/src/libs/services/SpeechService.ts",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Project full_name, microsoft-cognitiveservices-speech-sdk",
      "display": "microsoft/chat-copilot",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "Project stargazers_count, microsoft-cognitiveservices-speech-sdk",
      "display": "2.4K",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Library name, @aws-sdk/client-transcribe-streaming",
      "display": "@aws-sdk/client-transcribe-streaming",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Monthly downloads, @aws-sdk/client-transcribe-streaming",
      "display": "2.1M",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "License, @aws-sdk/client-transcribe-streaming",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Package release, @aws-sdk/client-transcribe-streaming",
      "display": "3.1172.0",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Package release date, @aws-sdk/client-transcribe-streaming",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Install, @aws-sdk/client-transcribe-streaming",
      "display": "npm install @aws-sdk/client-transcribe-streaming@3.1172.0",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Quickstart, @aws-sdk/client-transcribe-streaming",
      "display": "import { createReadStream } from \"node:fs\";\nimport { TranscribeStreamingClient, StartStreamTranscriptionCommand } from \"@aws-sdk/client-transcribe-streaming\";\nconst client = new TranscribeStreamingClient({ region: process.env.AWS_REGION });\nasync function* audio() {\n  for await (const chunk of createReadStream(\"audio.pcm\", { highWaterMark: 3200 }))\n    yield { AudioEvent: { AudioChunk: chunk } };\n}\nconst response = await client.send(new StartStreamTranscriptionCommand({\n  LanguageCode: \"en-US\", MediaEncoding: \"pcm\", MediaSampleRateHertz: 16000, AudioStream: audio(),\n}));\nfor await (const event of response.TranscriptResultStream ?? []) console.log(event.TranscriptEvent);\n",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Repository stars, @aws-sdk/client-transcribe-streaming",
      "display": "3.7K",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "Live audio, @aws-sdk/client-transcribe-streaming",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Speaker labels, @aws-sdk/client-transcribe-streaming",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Recognition interface, @aws-sdk/client-transcribe-streaming",
      "display": "Incremental audio stream and partial/final transcription events, not batch-job submission.",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Authentication and input boundary, @aws-sdk/client-transcribe-streaming",
      "display": "Node.js ESM, configured AWS credentials/region/IAM, actual mono16kHz signed16-bit little-endian raw PCM audio.pcm.3200-byte chunks represent100ms at that format. This feeds stored bytes through the live streaming endpoint, not a queued file job; real microphone ingestion, framing, pacing, cancellation, partial/final handling, and browser polyfills remain application work.",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project function, @aws-sdk/client-transcribe-streaming",
      "display": "const startStream = async (\n    mic: MicrophoneStream,\n    languageCode?: LanguageCode,\n    speakerLabel: boolean = false,\n    languageOptions?: string[],\n    enableMultiLanguage: boolean = false\n  ): Promise<StreamOutcome> => {\n    if (!transcribeClient) return { connected: false, receivedResults: false };\n\n    // Update Language\n    if (languageCode) {\n      setLanguage(languageCode);\n    }\n\n    const audioStream = async function* () {\n      for await (const chunk of mic as unknown as Buffer[]) {\n        yield {\n          AudioEvent: {\n            AudioChunk: pcmEncodeChunk(chunk),\n          },\n        };\n      }\n    };\n\n    // Best Practice: https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html\n    let commandParams;\n\n    if (enableMultiLanguage) {\n      // Multi-language identification mode (bidirectional translation)\n      commandParams = {\n        LanguageCode: undefined,\n        IdentifyLanguage: false,\n        IdentifyMultipleLanguages: true,\n        LanguageOptions: languageOptions\n          ? languageOptions.join(',')\n          : getTranscribeLanguageOptions().join(','),\n      };\n    } else if (languageCode) {\n      // Specific language mode\n      commandParams = {\n        LanguageCode: languageCode,\n        IdentifyLanguage: false,\n        IdentifyMultipleLanguages: false,\n        LanguageOptions: undefined,\n      };\n    } else {\n      // Auto language identification mode\n      commandParams = {\n        LanguageCode: undefined,\n        IdentifyLanguage: true,\n        IdentifyMultipleLanguages: false,\n        LanguageOptions: languageOptions\n          ? languageOptions.join(',')\n          : getTranscribeLanguageOptions().join(','),\n      };\n    }\n\n    const command = new StartStreamTranscriptionCommand({\n      ...commandParams,\n      MediaEncoding: 'pcm',\n      MediaSampleRateHertz: getTranscribeSampleRate(mic.context.sampleRate),\n      AudioStream: audioStream(),\n      ShowSpeakerLabel: speakerLabel,\n    });\n\n    let connected = false;\n    let receivedResults = false;\n    try {\n      const response = await transcribeClient.send(command);\n      connected = true;\n\n      if (response.TranscriptResultStream) {\n        // This snippet should be put into an async function\n        for await (const event of response.TranscriptResultStream) {\n          if (\n            event.TranscriptEvent?.Transcript?.Results &&\n            event.TranscriptEvent.Transcript?.Results.length > 0\n          ) {\n            receivedResults = true;\n            // Get multiple possible results, but this code only processes a single result\n            const result = event.TranscriptEvent.Transcript?.Results[0];\n\n            // Update Language\n            if (result.LanguageCode) {\n              setLanguage(result.LanguageCode);\n            }\n\n            // Process Multiple Speaker\n            const transcriptItems =\n              result.Alternatives?.flatMap(\n                (alternative) => alternative.Items ?? []\n              ) ?? [];\n            // Merge consecutive transcript with same Speaker\n            const mergedTranscripts = transcriptItems.reduce((acc, curr) => {\n              if (acc.length > 0 && curr.Type === 'punctuation') {\n                acc[acc.length - 1].Content += curr.Content || '';\n              } else if (\n                acc.length > 0 &&\n                acc[acc.length - 1].Speaker === curr.Speaker\n              ) {\n                acc[acc.length - 1].Content += ' ' + (curr.Content || '');\n              } else {\n                acc.push(curr);\n              }\n              return acc;\n            }, [] as Item[]);\n            const transcripts: Transcript[] = mergedTranscripts?.map(\n              (item) => ({\n                speakerLabel: item.Speaker ? 'spk_' + item.Speaker : undefined,\n                transcript: item.Content || '',\n              })\n            );\n\n            // Keep timestamps monotonic across automatic reconnections\n            const startTime = (result.StartTime ?? 0) + timeOffsetRef.current;\n            const endTime = (result.EndTime ?? 0) + timeOffsetRef.current;\n            lastEndTimeRef.current = Math.max(lastEndTimeRef.current, endTime);\n\n            setRawTranscripts((prev) => {\n              if (prev.length === 0 || !prev[prev.length - 1].isPartial) {\n                // segment is complete\n                const tmp = update(prev, {\n                  $push: [\n                    {\n                      resultId:\n                        result.ResultId ?? `mic-${Date.now()}-${Math.random()}`,\n                      startTime,\n                      endTime,\n                      isPartial: result.IsPartial ?? false,\n                      transcripts,\n                      languageCode: result.LanguageCode,\n                    },\n                  ],\n                });\n                return tmp;\n              } else {\n                // segment is NOT complete(overrides the previous segment's transcript)\n                const tmp = update(prev, {\n                  $splice: [\n                    [\n                      prev.length - 1,\n                      1,\n                      {\n                        resultId:\n                          result.ResultId ??\n                          `mic-${Date.now()}-${Math.random()}`,\n                        startTime,\n                        endTime,\n                        isPartial: result.IsPartial ?? false,\n                        transcripts,\n                        languageCode: result.LanguageCode,\n                      },\n                    ],\n                  ],\n                });\n                return tmp;\n              }\n            });\n          }\n        }\n      }\n    } catch (error) {\n      console.error(error);\n    }\n    return { connected, receivedResults };\n  };\n",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project source file, @aws-sdk/client-transcribe-streaming",
      "display": "packages/web/src/hooks/useMicrophone.ts",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project full_name, @aws-sdk/client-transcribe-streaming",
      "display": "aws-samples/generative-ai-use-cases",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project stargazers_count, @aws-sdk/client-transcribe-streaming",
      "display": "1.4K",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Library name, react-speech-recognition",
      "display": "react-speech-recognition",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Monthly downloads, react-speech-recognition",
      "display": "1.1M",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "License, react-speech-recognition",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Package release, react-speech-recognition",
      "display": "4.0.1",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release date, react-speech-recognition",
      "display": "Apr 2025",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Install, react-speech-recognition",
      "display": "npm install react-speech-recognition@4.0.1",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Quickstart, react-speech-recognition",
      "display": "import SpeechRecognition, { useSpeechRecognition } from \"react-speech-recognition\";\nexport default function Dictation() {\n  const { transcript, browserSupportsSpeechRecognition } = useSpeechRecognition();\n  if (!browserSupportsSpeechRecognition) return <p>Speech recognition is unavailable.</p>;\n  return <>\n    <button onClick={() => SpeechRecognition.startListening()}>Start</button>\n    <button onClick={() => SpeechRecognition.stopListening()}>Stop</button>\n    <p>{transcript}</p>\n  </>;\n}\n",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Official description, react-speech-recognition",
      "display": "Adds browser speech recognition to React apps.",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Quickstart source file, react-speech-recognition",
      "display": "docs/API.md",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Repository stars, react-speech-recognition",
      "display": "843",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Live audio, react-speech-recognition",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Speaker labels, react-speech-recognition",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Recognition interface, react-speech-recognition",
      "display": "React state/hooks over browser Web Speech recognition, with optional separately configured polyfills.",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Authentication and input boundary, react-speech-recognition",
      "display": "Existing compatible React18/19 browser TSX application, JSX host/types and bundler, secure context, microphone permission, and browser Web Speech recognition support. Browser engine/network availability and polyfill/provider choices determine recognition behavior; the core hook is not a standalone Node.js recognizer.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project function, react-speech-recognition",
      "display": "export default function BrowserNativeSTT({ sendCommand }) {\n  const previousTranscriptRef = useRef(\"\");\n  const {\n    transcript,\n    listening,\n    resetTranscript,\n    browserSupportsSpeechRecognition,\n    browserSupportsContinuousListening,\n    isMicrophoneAvailable,\n  } = useSpeechRecognition({\n    clearTranscriptOnListen: true,\n  });\n\n  function startSTTSession() {\n    if (!isMicrophoneAvailable) {\n      alert(\n        \"AnythingLLM does not have access to microphone. Please enable for this site to use this feature.\"\n      );\n      return;\n    }\n\n    resetTranscript();\n    previousTranscriptRef.current = \"\";\n    SpeechRecognition.startListening({\n      continuous: browserSupportsContinuousListening,\n      language: window?.navigator?.language ?? \"en-US\",\n    });\n  }\n\n  function endSTTSession() {\n    SpeechRecognition.stopListening();\n\n    // If auto submit is enabled, send an empty string to the chat window to submit the current transcript\n    // since every chunk of text should have been streamed to the chat window by now.\n    if (Appearance.get(\"autoSubmitSttInput\")) {\n      sendCommand({\n        text: \"\",\n        autoSubmit: true,\n        writeMode: \"append\",\n      });\n    }\n\n    resetTranscript();\n    previousTranscriptRef.current = \"\";\n    clearTimeout(timeout);\n  }\n\n  useEffect(() => {\n    if (transcript?.length > 0 && listening) {\n      const previousTranscript = previousTranscriptRef.current;\n      const newContent = transcript.slice(previousTranscript.length);\n\n      // Stream just the diff of the new content since transcript is an accumulating string.\n      // and not just the new content transcribed.\n      if (newContent.length > 0)\n        sendCommand({ text: newContent, writeMode: \"append\" });\n\n      previousTranscriptRef.current = transcript;\n      clearTimeout(timeout);\n      timeout = setTimeout(() => {\n        endSTTSession();\n      }, SILENCE_INTERVAL);\n    }\n  }, [transcript, listening]);\n\n  if (!browserSupportsSpeechRecognition) return null;\n  return (\n    <MicButton\n      listening={listening}\n      onStart={startSTTSession}\n      onStop={endSTTSession}\n    />\n  );\n}\n",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project source file, react-speech-recognition",
      "display": "frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/SpeechToText/BrowserNative/index.jsx",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project full_name, react-speech-recognition",
      "display": "Mintplex-Labs/anything-llm",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project stargazers_count, react-speech-recognition",
      "display": "68.4K",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript speech recognition speech to text libraries Node browser code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
