Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.sttWithMetadata() produces inaccurate token timings #3687

Closed
nikola-ctx opened this issue Sep 13, 2021 · 1 comment
Closed

.sttWithMetadata() produces inaccurate token timings #3687

nikola-ctx opened this issue Sep 13, 2021 · 1 comment

Comments

@nikola-ctx
Copy link

nikola-ctx commented Sep 13, 2021

When transcribing audio (.wav, 16KHz) using DeepSpeech's sttWithMetadata method, I get inaccurate token start_time values. If compared against the actual waveform in tools such as Audacity, the DeepSpeech timings are invariably late/wrong.
Here's the code I use to generate the metadata/transcription (deepspeech version 0.9.3):

import deepspeech
from scipy.io import wavfile

model_path = "deepspeech-0.9.3-models.pbmm"
scorer_path = "deepspeech-0.9.3-models.scorer"
ds_model = deepspeech.Model(model_path)
ds_model.enableExternalScorer(scorer_path)

sr, audio_signal = wavfile.read("some_audio.wav")
metadata = ds_model.sttWithMetadata(audio_signal)
@ftyers
Copy link
Collaborator

ftyers commented Sep 29, 2022

See #3693

@ftyers ftyers closed this as completed Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants