mozilla / DeepSpeech

DeepSpeech is an open source embedded (offline, on-device) speech-to-text engine which can run in real time on devices ranging from a Raspberry Pi 4 to high power GPU servers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.Net code returns different result

Camel-RD opened this issue · comments

Im using 2830-3980-0043.wav file from audio-0.9.3.tar.gz

This command returns "experience proves this":
deepspeech.exe --model deepspeech-0.9.3-models.pbmm --audio "2830-3980-0043.wav"

This c# code returns "experience prooes thiss".

  DeepSpeech deepSpeechClient = new DeepSpeech("deepspeech-0.9.3-models.pbmm");
  var waveBuffer = new NAudio.Wave.WaveBuffer(File.ReadAllBytes("2830-3980-0043.wav"));
  string speechResult = deepSpeechClient.SpeechToText(
    waveBuffer.ShortBuffer,
    Convert.ToUInt32(waveBuffer.MaxSize / 2));

@Camel-RD thanks for your interest! Please see #3693.