Skip to content
kajweb-740 edited this page Sep 9, 2020 · 1 revision

py-win-tts

English 中文文档

Speech synthesis system based on SAPI.SpVoic

Through this system, text-to-speech can be quickly realized and output to the designated playback device

Requirement

  • windows 7、windows 8、windows 10
  • Microsoft Speech SDK 5.1 And Above
  • Python3

Installation

pip install -r requirements.txt

Usage

from PyWinTTS import *;
pwt = pyWinTTS();
pwt.speak( "sentence" );

Without selecting the output device, the default audio output device is output to the system's default audio output device.

Function

getAudioOutput()

Get the current output device

setAudioOutput( index )

Set output device

getVoice()

Get current announcer

setVoice( index )

Set announcer

getVolume()

Get current volume

setVolume( value )

Set volume

speak( sentence, flags=0 )

start speaking

More Methods More Properties

Note

Because Microsoft Speech SDK can only run in windows environment, and this project depends on Microsoft Speech SDK, so this project only supports windows system, other systems need to perform SAPI.SpVoic Compatible processing.

License

MIT

Getting Started

Installation And Usage

Method And Properties

FAQ


开始

安装与用法

方法与属性

常见问题

Clone this wiki locally