WhisperLive.Client 1.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package WhisperLive.Client --version 1.1.2                
NuGet\Install-Package WhisperLive.Client -Version 1.1.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WhisperLive.Client" Version="1.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WhisperLive.Client --version 1.1.2                
#r "nuget: WhisperLive.Client, 1.1.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WhisperLive.Client as a Cake Addin
#addin nuget:?package=WhisperLive.Client&version=1.1.2

// Install WhisperLive.Client as a Cake Tool
#tool nuget:?package=WhisperLive.Client&version=1.1.2                

WhisperLive.Client

A dotnet client library for WhisperLive server.

Installation

npm install @codehard-th/whisperlive-client

Usage

To use the Recorder library, include the necessary files in your project and import the Recorder class along with its dependencies.

using WhisperLive.Abstraction;
using WhisperLive.Abstraction.Configurations;
using WhisperLive.Client.Filters;
using WhisperLive.Client.Implementation;

var url = "ws://your-server-location";

// Adds your own filter as you see fit into the SegmentFilterFilterPipeline here.
var filterPipeline = new SegmentFilterFilterPipeline();
filterPipeline.AddFilter(new YourCustomFilter());
filterPipeline.AddFilter<YourAnotherCustomFilter>();

var configuration = new TranscriptorConfiguration(
    model: "large-v2",
    language: "en",
    isMultiLanguage: false,
    useVoiceActivityDetection: false,
    transcriptionDelay: TimeSpan.FromMilliseconds(100),
    transcriptionTimeout: TimeSpan.FromSeconds(30),
    segmentFilter: filterPipeline,
    options: TranscriptionOptions.Default with
    {
        RepetitionPenalty = 1.1f,
    });

// Create the transcriptor with a pre-defined configuration.
using var transcriptor = new SingleChannelTranscriptor(serviceUri);

// Subscribe to the events
transcriptor.TranscriptorReady += (sessionId, transcriptor) => { ... };
transcriptor.TranscribeMessageCompleted += (sessionId, speaker, segments) => { ... };
transcriptor.SessionEnded += (sessionId, reason, desc) => { ... };

// Starts the transcription session.
// The input can be an audio file path, an audio stream, or a HLS streaming URL.
var source = "/path/to/my/audio.mp3";
using var transcriptionSession = await transcriptor.StartAsync(source, CancellationToken.None);

// To stop the transcription you can call `StopAsync`
await transcriptor.StopAsync(transcriptionSession.Id, CancellationToken.None);

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on WhisperLive.Client:

Package Downloads
WhisperLive.Client.Recorder

A dotnet client for WhisperLive speech to text server with microphone record support.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 142 6/11/2024
1.2.0 112 6/10/2024
1.1.5 100 6/4/2024
1.1.4 111 5/28/2024
1.1.3 99 5/27/2024
1.1.2 100 5/27/2024
1.1.1 110 5/27/2024
1.1.0 108 5/23/2024
1.1.0-preview-006 110 4/30/2024
1.1.0-preview-005 89 4/29/2024
1.1.0-preview-004 104 4/18/2024
1.1.0-preview-003 89 4/18/2024
1.1.0-preview-002 93 4/9/2024
1.1.0-preview-001 103 4/9/2024
1.0.3 146 4/9/2024
1.0.1 124 3/27/2024
1.0.0 106 3/26/2024

Added more options to control the transcription behavior.