Day 95 – Speaker Voice Verification Using SpeechBrain
SpeechBrain

Day 95 – Speaker Voice Verification Using SpeechBrain

We saw posts in previous blogs about SpeechBrain, Features, PreTrained models, Multi-Speaker Speech Separation and Recognition Using SpeechBrain, and Speech Recognition On Different Languages By SpeechBrain.

Today, we are going to see in detail about Speaker Voice Verification?

What is Speaker Voice Verification?

Sometimes, we listen to audios and feel we are hearing same voice on both audios though it’s a different voice on audios. Speaker voice verification model verifies both speakers are same for the audio and returns True or False.

Let’s get into a code to check simple Speaker Voice Verification.

I have used SpeechBrain Pretrained models and audio files and downloaded mixed audio files (Audacity) from Azure Github.

To check my full code in Google Colab as well as here.

#Install Torchaudio, SpeechBrain and Transformers
!pip install torchaudio==0.8.1 #Temporary (until pytorch 0.9 is supported in Colab)
!pip install speechbrain        
!pip install transformers
        
#Import all libraries
import speechbrain as sb
from speechbrain.dataio.dataio import read_audio        
from IPython.display import Audio
        
#Download pretrained SpeakerRecognition from SpeechBrain
from speechbrain.pretrained import SpeakerRecognition
verification = SpeakerRecognition.from_hparams(source="speechbrain/spkrec-ecapa-voxceleb", savedir="pretrained_models/spkrec-ecapa-voxceleb")
score, prediction = verification.verify_files("speechbrain/spkrec-ecapa-voxceleb/sampledata_samevoice1.wav", "speechbrain/spkrec-ecapa-voxceleb/sampledata_samevoice2.wav")
        
print(prediction, score)

        

Continue reading...

Further Reading

Posts on Artificial IntelligenceDeep LearningMachine Learning, and Design Thinking articles:

Autonomous Vehicle Environment Perception Task By Pandas Team

Deep Learning Basics: Introduction, Concepts, and Overview

TextStyleBrush by Facebook AI Research Team

Watercolor Painting Under 5 Mins Using Stylized Neural Painting Artificial Intelligence

Marker Pen Painting Under 5 Mins Using Stylized Neural Painting Artificial Intelligence

Detail Sentence Analyzer Using spaCy Natural Language Processing – Part II

Named Entity Recognition Using spaCy Natural Language Processing – Part III

AI Converts Your Photo Or Video Selfie To Animation – GANsNRoses

Artificial Intelligence Chatbot Using Neural Network and Natural Language Processing

Tensorflow Sobel Filter Image Processing and Computer Vision

Oil Painting Under 5 Mins Using Stylized Neural Painting Artificial Intelligence

COCO Keypoint Detection Detectron2 Computer Vision by Facebook AI Research (FAIR)

Translate 125 Plus Languages Using Google Artificial Intelligence – Part 1

Translate 125 Plus Languages Using Google Artificial Intelligence – Part 2

Posts on SAP:

How to Transform Your Business with SAP Data Intelligence?

SAP AI Business Services – Business Entity Recognition

SAP AI Business Services – Document Information Extraction

SAP AI Business Services – Service Ticket Intelligence

SAP Intelligent Robotic Process Automation, Use Case, Benefits, and Available Features

SAP Conversational AI

SAP AI Business Services

Andrei Larionov

CTO at Aurum Window Cleaning & Property Care - A Gold Standard Company

1y

I do not understand AT ALL why the speech recognition requires a pre-trained model, namely, this line "source="speechbrain/spkrec-ecapa-voxceleb" Do you ?? I mean, why comparing 2 voice samples and figuring out whether they are the same requires pre-trained neural network that is pre-trained on completely different samples ?

To view or add a comment, sign in

More articles by Gopi Chandrakesan

Insights from the community

Others also viewed

Explore topics