Skip to content

❓ Questions - Minimum speech duration? #349

Answered by snakers4
mukundt asked this question in Q&A
Discussion options

You must be logged in to vote

It sounds like I should not be junking the previous audio every time I add new audio?

If this is the same stream, then no.
If these audios are different - then yes.
There are utils for streaming as well, if you are after streaming.

If you just use the provided utils (do not forget to set the proper SR) event with the default settings you get:

SAMPLING_RATE = 8000
wav = read_audio('bytes_jun15.wav', sampling_rate=SAMPLING_RATE)
# get speech timestamps from full audio file
speech_timestamps = get_speech_timestamps(wav, model, sampling_rate=SAMPLING_RATE)
pprint(speech_timestamps)

# merge all speech chunks to one audio
save_audio('only_speech.wav',
           collect_chunks(speech_timesta…

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@Nullarity
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by snakers4
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@snakers4
Comment options

@mukundt
Comment options

@mukundt
Comment options

@snakers4
Comment options

@mukundt
Comment options

Comment options

You must be logged in to vote
1 reply
@snakers4
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
4 participants
Converted from issue

This discussion was converted from issue #348 on June 15, 2023 07:53.