Installation
Contents
Installation#
Using PIP#
Simply use PIP to install malaya-speech,
pip3 install malaya-speech
It will automatically all dependencies except for Tensorflow and PyTorch. So you can choose your own Tensorflow CPU / GPU version and PyTorch CPU / GPU version.
Make sure Tensorflow >= 1.15.0, and PyTorch >= 1.10.
Simple ASR#
[2]:
y, sr = malaya_speech.load('speech/example-speaker/husein-zolkepli.wav')
[5]:
stt = malaya_speech.stt.deep_transducer()
[4]:
stt.greedy_decoder([y])
[4]:
['testing nama saya husin bin zulkifli']