Transforming a speech WAV file into English text

Next, you can convert the speech WAV file into English text by executing the following command:

python recognize.py --file 

This will transform a speech WAV file into an English sentence.

The result will be printed on the console; try the following command as an example:


python recognize.py --file asset/data/LibriSpeech/test-clean/1089/134686/1089-134686-0000.flac
python recognize.py --file asset/data/LibriSpeech/test-clean/1089/134686/1089-134686-0001.flac
python recognize.py --file asset/data/LibriSpeech/test-clean/1089/134686/1089-134686-0002.flac
python recognize.py --file asset/data/LibriSpeech/test-clean/1089/134686/1089-134686-0003.flac
python recognize.py --file asset/data/LibriSpeech/test-clean/1089/134686/1089-134686-0004.flac

The result will be as follows:

he hoped there would be stoo for dinner turnips and charrats and bruzed patatos and fat mutton pieces to be ladled out in th thick peppered flower fatan sauce stuffid into you his belly counsiled him after early night fall the yetl lampse woich light hop here and there on the squalled quarter of the browfles o berty and he god in your mind numbrt tan fresh nalli is waiting on nou cold nit husband

The ground truth is as follows:

HE HOPED THERE WOULD BE STEW FOR DINNER TURNIPS AND CARROTS AND BRUISED POTATOES AND FAT MUTTON PIECES TO BE LADLED OUT IN THICK PEPPERED FLOUR FATTENED SAUCE STUFF IT INTO YOU HIS BELLY COUNSELLED HIM AFTER EARLY NIGHTFALL THE YELLOW LAMPS WOULD LIGHT UP HERE AND THERE THE SQUALID QUARTER OF THE BROTHELS HELLO BERTIE ANY GOOD IN YOUR MIND NUMBER TEN FRESH NELLY IS WAITING ON YOU GOOD NIGHT HUSBAND

As we mentioned earlier, there is no language model, so there are some cases where capital letters and punctuation are misused, or words are misspelled.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset