pyannote-speaker-diarization / audio /audioanalyser_diarization.py
Ld75's picture
tdd + diarization
3ecd153
raw
history blame
526 Bytes
#deepneurones = pipeline("text2text-generation", model="google/flan-t5-small")
from pyannote.audio import Pipeline
use_auth_token="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"
deepneuronesdiarization = Pipeline.from_pretrained("pyannote/speaker-diarization", use_auth_token=use_auth_token)
class AudioAnalyserDiarization:
@classmethod
def diarization(cls, file_content):
# results = deepneuronesdiarizatin(file_content)
# return results
return deepneuronesdiarization(file_content)