csukuangfj / PortAudioSharp2

C# binding for portaudio supporting Linux, macOS, Windows
Apache License 2.0
23 stars 2 forks source link

Introduction

C# binding for portaudio supporting Linux, macOS, and Windows.

See https://www.nuget.org/packages/PortAudioSharp2

The binding code is copied from PortAudioSharp.

Different from PortAudioSharp, this project packages pre-compiled portaudio into the nuget package, which simplifies user's life.

It's worth mentioning again that the binding code is copied directly from PortAudioSharp.

Examples

Recording for speech-to-text

You can find its usage for real-time speech-to-text from a microphone using sherpa-onnx at https://github.com/k2-fsa/sherpa-onnx/tree/master/dotnet-examples/speech-recognition-from-microphone

Playing for text-to-speech

You can find its usage for text-to-speech with a speaker using sherpa-onnx at https://github.com/k2-fsa/sherpa-onnx/tree/master/dotnet-examples/offline-tts-play