This project is forked from one of the Intel anlalytics-zoo examples.
Thanks for their contributions.
-
Download deepspeech2 model to the 'deepspeech2/model/' directory.
-
Build the project: import the project into IDE or build with "mvn clean package".
-
Start your hdfs service at localhost:9000.
-
Enter the 'deepspeech2' directory.
cd deepspeech2
- Put the audio file to hdfs
hdfs dfs -mkdir /data
hdfs dfs -put data/1462-170145-0004.flac /data/1462-170145-0004.flac
- Run 'prediction.sh' to get result
./prediction.sh
Output will looks like:
+------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
|path |output |
+------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+
|hdfs://127.0.0.1:9000/data/1462-170145-0004.flac|I SAW THAT INTERVIEW IN THE PAPERYESTERDAY TELLING WHER YOU WERE AND I THOUGHT I HAD TO SEE YOU THAT'S ALL BUT NIGHT I'AM GOING DOW|
+------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------+