← AI GitHub

AI GitHub

sherpa-onnx for local speech applications

Embed supported speech models in applications through ONNX-based runtimes.

Voice and AudioPublished 2 min read

Key Takeaways

  • The project supplies APIs and examples for speech tasks such as recognition and synthesis on different platforms.
  • Use a model and package combination supported on the target platform.
  • Try a documented streaming recognizer on the intended device.
  • Each model has its own expected sample rate, token files and decoding settings.

How it works

The project supplies APIs and examples for speech tasks such as recognition and synthesis on different platforms. Streaming and offline workflows use different model and configuration choices.

What you need

Use a model and package combination supported on the target platform. Keep tokenizer or token files and streaming configuration with the model artifact.

What to try first

Try a documented streaming recognizer on the intended device. Measure partial-result latency and verify final text when the user pauses mid-sentence.

Measure the delay between end of speech and a final transcript. A recognizer that emits fast partial text can still take too long to close an utterance.

Where to look for failures

Each model has its own expected sample rate, token files and decoding settings. Verify the exact platform package and model pair.

Related Franklin pages

Test startup, partial results and end-of-utterance delay on the intended device. An offline throughput figure does not capture how long a user waits to see the first text.

For an application where the quality of recording and handling audio matters, see Franklin’s Open Mic AI profile. Open Mic AI

Project documentation

Try it for your workflow

Explore the project’s documentation for setup and usage, or save this page to a collection for later.

Read the project documentation ↗