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

audio_split example #1021

Open
Evilmaax opened this issue Sep 24, 2024 · 1 comment
Open

audio_split example #1021

Evilmaax opened this issue Sep 24, 2024 · 1 comment

Comments

@Evilmaax
Copy link

Hey guys, right now Im splitting my audio into channels using ffmpeg and numpy, after that I send to BatchedInferencePipeline.Transcribe for transcription.

But I was looking at transcribe.py class and found a method named audio_split. Does it do the same process of separating audio into channels? Cant find any documentation or usage of it. Also, didn't get why segments should be passed as parameter since segments are generated after transcription process.

@Evilmaax
Copy link
Author

To information of someone who can reach this by having the same question, I went deeper and found that I was misinterpreting the code.

What this function will really do is receive the audio and the transcribed segments and from its segments start and end time split the audio into corresponding chunks.

I believe this should be well documented.

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

1 participant