sherpa
1.3
  • Introduction
  • Download pdf
  • Social groups
  • Run Next-gen Kaldi in your browser
  • Pre-trained models

k2-fsa/sherpa

  • sherpa

k2-fsa/sherpa-ncnn

  • sherpa-ncnn

k2-fsa/sherpa-onnx

  • sherpa-onnx
    • Tutorials
    • Installation
    • Frequently Asked Question (FAQs)
    • Python
    • C API
    • Java API
    • Javascript API
    • Kotlin API
    • Swift API
    • Go API
    • C# API
    • Pascal API
    • Lazarus
    • WebAssembly
    • Android
    • HarmonyOS
    • iOS
    • Flutter
    • WebSocket
      • Streaming WebSocket server and client
      • Non-streaming WebSocket server and client
    • Hotwords (Contextual biasing)
    • Keyword spotting
    • Punctuation
    • Audio tagging
    • Spoken language identification
    • VAD
    • Pre-trained models
    • Moonshine
    • SenseVoice
    • FireRedAsr
    • Dolphin
    • Speaker Diarization
    • Speaker Identification
    • Speech enhancement
    • rknn
    • Text-to-speech (TTS)

Triton

  • Triton
sherpa
  • »
  • sherpa-onnx »
  • WebSocket
  • Edit on GitHub

WebSocket

In this section, we describe how to use the WebSocket server and client for real-time speech recognition with sherpa-onnx.

The WebSocket server is implemented in C++ with the help of websocketpp and asio.

Hint

It does not depend on boost.

It does not depend on boost.

It does not depend on boost.

  • Streaming WebSocket server and client
    • Build sherpa-onnx with WebSocket support
    • View the server usage
    • Start the server
    • View the usage of the client (C++)
    • Start the client (C++)
    • View the usage of the client (Python)
    • Start the client (Python)
    • Start the client (Python, with microphone)
  • Non-streaming WebSocket server and client
    • Build sherpa-onnx with WebSocket support
    • View the server usage
    • Start the server
      • Start the server with a transducer model
      • Start the server with a paraformer model
    • Start the client (Python)
      • offline-websocket-client-decode-files-paralell.py
      • offline-websocket-client-decode-files-sequential.py
Previous Next

© Copyright 2022-2025, sherpa development team.

Built with Sphinx using a theme provided by Read the Docs.