This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torchaudio | |
from speechbrain.pretrained.interfaces import foreign_class | |
language_id = foreign_class(source="TalTechNLP/voxlingua107-xls-r-300m-wav2vec", pymodule_file="encoder_wav2vec_classifier.py", classname="EncoderWav2vecClassifier", hparams_file='inference_wav2vec.yaml', savedir="tmp") | |
# Download Thai language sample from Omniglot and convert to suitable form | |
wav_file = "https://omniglot.com/soundfiles/udhr/udhr_th.mp3" | |
out_prob, score, index, text_lab = language_id.classify_file(wav_file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
windowBg: #282e33; // white: fallback for background | |
windowFg: #f5f5f5; // black: fallback for text | |
windowBgOver: #313b43; // light gray: fallback for background with mouse over | |
windowBgRipple: #3f4850; // darker gray: fallback for ripple effect | |
windowFgOver: #e9ecf0; // black: fallback for text with mouse over | |
windowSubTextFg: #82868a; // gray: fallback for additional text | |
windowSubTextFgOver: #797b7f; // darker gray: fallback for additional text with mouse over | |
windowBoldFg: #e9e8e8; // dark gray: fallback for bold text | |
windowBoldFgOver: #e9e9e9; // dark gray: fallback for bold text with mouse over | |
windowBgActive: #3fc1b0; // bright blue: fallback for blue filled active areas |