Im new at cmu sphinix. i wanna convert my audio (wav) to text and export json like ["are", 1.88, 1.91], ["large", 2.07, 2.31], ["animals", 2.34, 2.94], ["which", 2.94, 3.15], ["are", 3.15, 3.29], ["found", 3.29, 3.67], ["in", 3.67, 3.76], ["americawhen", 3.76, 4.39], ["reports", 5.22, 5.92] . i wanna align word on time file .json.
how can i do this. anyone offer me source or code ?
Last edit: ferhun taylan 2016-10-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi;
Im new at cmu sphinix. i wanna convert my audio (wav) to text and export json like ["are", 1.88, 1.91], ["large", 2.07, 2.31], ["animals", 2.34, 2.94], ["which", 2.94, 3.15], ["are", 3.15, 3.29], ["found", 3.29, 3.67], ["in", 3.67, 3.76], ["americawhen", 3.76, 4.39], ["reports", 5.22, 5.92] . i wanna align word on time file .json.
how can i do this. anyone offer me source or code ?
Last edit: ferhun taylan 2016-10-13
Maybe you try to write it yourself based on this example first.
https://github.com/cmusphinx/pocketsphinx/blob/master/swig/python/test/continuous_test.py
and we will help you if you are in trouble.
thnx i will try it, can i get json output?
Construct an object in python first and then simply dump it, see for details
https://docs.python.org/2/library/json.html