File size: 320 Bytes
8ad2ab3
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
from .voice_confidence import calc_voice_confidence_score
import whisper

model_size = "base"  
whisper_model = whisper.load_model(model_size)

audio_file = r"D:\Intern\shankh\audio_samples\obama_short.wav"

result = calc_voice_confidence_score(audio_file, whisper_model) 

print(f"Voice Confidence Score: {result:.2f}")