Views
No views yet
@inproceedings{chojnacka2021speakerstew,
title={{SpeakerStew: Scaling to many languages with a triaged multilingual text-dependent and text-independent speaker verification system}},
author={Chojnacka, Roza and Pelecanos, Jason and Wang, Quan and Moreno, Ignacio Lopez},
booktitle={Prod. Interspeech},
pages={1064--1068},
year={2021},
doi={10.21437/Interspeech.2021-646},
issn={2958-1796},
}
@inproceedings{wan2018generalized,
title={Generalized end-to-end loss for speaker verification},
author={Wan, Li and Wang, Quan and Papir, Alan and Moreno, Ignacio Lopez},
booktitle={International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
pages={4879--4883},
year={2018},
organization={IEEE}
}siglingvo library: https://github.com/google/speaker-id/tree/master/lingvopip install sidlingvo1import os
2from sidlingvo import wav_to_dvector
3from huggingface_hub import hf_hub_download
4
5repo_id = "tflite-hub/conformer-speaker-encoder"
6model_path = "models"
7hf_hub_download(repo_id=repo_id, filename="vad_long_model.tflite", local_dir=model_path)
8hf_hub_download(repo_id=repo_id, filename="vad_long_mean_stddev.csv", local_dir=model_path)
9hf_hub_download(repo_id=repo_id, filename="conformer_tisid_medium.tflite", local_dir=model_path)
10
11enroll_wav_files = ["your_first_wav_file.wav"]
12test_wav_file = "your_second_wav_file.wav"
13runner = wav_to_dvector.WavToDvectorRunner(
14 vad_model_file=os.path.join(model_path, "vad_long_model.tflite"),
15 vad_mean_stddev_file=os.path.join(model_path, "vad_long_mean_stddev.csv"),
16 tisid_model_file=os.path.join(model_path, "conformer_tisid_medium.tflite"))
17score = runner.compute_score(enroll_wav_files, test_wav_file)
18print("Speaker similarity score:", score)