Giter Site home page Giter Site logo

Comments (16)

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 26, 2024 1

It's easy to add, not a big deal, but I want to make sure first that it does affect the inference, because it was reported earlier that this parameter has no effect on inference, only evaluation which is not used here

from whisper-diarization.

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 26, 2024

the speaker count in the config is for evaluation purposes only, in order to tune the diarization performance, you need to play with speaker_embeddings parameters such as window_length_in_sec and shift_length_in_sec. diar_window_length and sigmoid_threshold might be worth giving a shot too

from whisper-diarization.

pgegg02 avatar pgegg02 commented on September 26, 2024

thanks, i'll give that a try :)

from whisper-diarization.

famda avatar famda commented on September 26, 2024

Hi,
I'm have the same issue. Can you provide some instructions on how to tune those parameters to have a higher number of speakers by default, please?

Thanks in advance.

from whisper-diarization.

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 26, 2024

Hi @famda , I haven't tinkered with these before, but it's totally trial and error

from whisper-diarization.

famda avatar famda commented on September 26, 2024

No worries, I can make some tests with it. I just need to understand where to start. Can you guide me a little so I can play around with it? πŸ˜€

from whisper-diarization.

pgegg02 avatar pgegg02 commented on September 26, 2024

From just playing around with the shift_length and lowering it to about 0.25 I was able to detect 7 speakers when running it on an audiofile it only detected 3 before (theres 9 actual people speaking in it). Going Lower than that, didn't make much of a difference, but increased inference time dramatically (running locally on CPU). So i would start there. Changing the sigmoid_threshold didn't do much, but you can try that as well.

from whisper-diarization.

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 26, 2024

You should also try playing with scale windows and weights

from whisper-diarization.

francescocassini avatar francescocassini commented on September 26, 2024

Hi, how do you configure the possibility to separate the speaker?
Which is the config flag to set? because in the instruction there is nothing about this..
Can you help me?

from whisper-diarization.

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 26, 2024

Hello, what do you mean exactly by separating the speaker?

from whisper-diarization.

francescocassini avatar francescocassini commented on September 26, 2024

Sorry for my bad english!
Actually I have this:
{
"speaker": "Speaker 0",
"start_time": 433460,
"end_time": 435480,
"text": "Adesso approfondiamo un pochino meglio. "
},
{
"speaker": "Speaker 0",
"start_time": 435520,
"end_time": 437420,
"text": "Allora, innanzitutto, da dove venite ragazzi? "
},

both sentences are categorized as β€œspeaker0,” but the first sentence is spoken by a woman and the second by a male speaker.
Is it necessary to set some special configuration parameter to get speaker0 and speaker1?

from whisper-diarization.

01Ashish avatar 01Ashish commented on September 26, 2024

Hi, I want know can i use task='translate' in Whisper_Transcription_+_NeMo_Diarization.ipynb file. actually i want to pass a non-english (hindi) audio in model and then after getting english transcription(by using task = translate). I want to perform speaker diarization.

but i think because my translated transcript and audio both have different language english and hindi respectively I am not able to achieve this.

can somebody help me. How can i perform speaker diarization and translation of transcription both.
for testing purpose i am using Whisper_Transcription_+_NeMo_Diarization.ipynb

from whisper-diarization.

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 26, 2024

@francescocassini usually the default settings work as expected, but you can check my second comment about what to change if they dont

@01Ashish I haven't tested it for translate task yet, but as a starter, you should enable word timestamps in whisper and remove the alignment model and see how it goes

from whisper-diarization.

hayata-yamamoto avatar hayata-yamamoto commented on September 26, 2024

I want to use max_speaker parameter as cli argument like whisperx. Do you have any plan or solution?

Our case is clear for how many peoples speak in audio, so I expect model perform well by assigning correct max_speaker number for each execution. However, I don't know well how to do that.

from whisper-diarization.

MahmoudAshraf97 avatar MahmoudAshraf97 commented on September 26, 2024

I want to use max_speaker parameter as cli argument like whisperx. Do you have any plan or solution?

Our case is clear for how many peoples speak in audio, so I expect model perform well by assigning correct max_speaker number for each execution. However, I don't know well how to do that.

You can modify this parameter in the telephonic YAML config found in the configs folder, can you try it on an audio that predicts the wrong number of speakers and see if it makes a difference?

from whisper-diarization.

hayata-yamamoto avatar hayata-yamamoto commented on September 26, 2024

@MahmoudAshraf97
Thank you for quick reply. but, unfortunately I didn't face wrong number of speaker problem. just considering how to use this repository well.

I use this repository for creating transcription with docker on cloud services. So..., changing yaml is bit difficult for my case.
Ideally, If I can assign max_speaker value from cli, I can change behavior dynamically via docker run command.

That kind of operation should be supported in this repository in future? If no plan, I will use larger speaker count

from whisper-diarization.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.