Chinese Text To Speech and Speech Recognition
Project description
## Usage
### install
* pip3 install parrots
* Or
```
git clone https://github.com/shibing624/parrots.git
cd pyrrots
python3 setup.py install
```
### speech recognition
input:
```
import parrots
text = parrots.speech_recognition_from_file('./16k.wav')
print(text)
```
output:
```
北京图书馆
```
### tts
input:
```
import parrots
audio_file_path = parrots.synthesize('北京图书馆')
print(audio_file_path)
```
output:
```
北京图书馆 语音文件路径
```
### install
* pip3 install parrots
* Or
```
git clone https://github.com/shibing624/parrots.git
cd pyrrots
python3 setup.py install
```
### speech recognition
input:
```
import parrots
text = parrots.speech_recognition_from_file('./16k.wav')
print(text)
```
output:
```
北京图书馆
```
### tts
input:
```
import parrots
audio_file_path = parrots.synthesize('北京图书馆')
print(audio_file_path)
```
output:
```
北京图书馆 语音文件路径
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
parrots-0.1.2.tar.gz
(14.5 MB
view hashes)