Skip to main content

SDK for Aliyun tts service

Project description

Python 语言版本

Go版本


Install

pip install aliyun_voice

TTS 【语音合成服务】

Voice(ACCESS_ID, ACCESS_KEY)

阿里云认证。

from aliyun_voice.voice import Voice
auth = Voice(ALIYUNACCESSID, ALIYUNACCESSKEY)

auth.get_voice(text, **tts_params)

获取语音文件字节数组,或抛出错误。

auth.save_voice(text, dist, **tts_params)

存储语音文件到指定目录【dist】,或抛出错误。

Test

python -m unittest discover -v

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
aliyun_voice-1.0.2.tar.gz (4.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page