Skip to content

ttsmaker is a Text-to-Speech library implemented using the TTSMaker API.

Notifications You must be signed in to change notification settings

mengbin92/ttsmaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ttsmaker

ttsmaker is a Text-to-Speech library implemented using the TTSMaker API.

API documents is here.

Example

New client with you token:

client := ttsmaker.NewClient("ttsmaker_demo_token")

Get All Voice List

listResp, err := client.GetVoiceList(context.Background())

Or, get voice list with languages:

listResp, err := client.GetVoiceListWithLang(context.Background(), "en")  

support language: ["en","zh","es","ja","ko","de","fr","it","ru","pt","tr","ms","th","vi","id","he"]

Get Yout Token Status

statusResp, err := client.GetTokenStatus(context.Background())

Create a TTS Order

orderRequest := &ttsmaker.OrderRequest{
	Token:                  "ttsmaker_demo_token",
	Text:                   "hello, world!",
	VoiceID:                "778",
	AudioFormat:            "mp3",
	AudioSpeed:             1.0,
	AudioVolume:            0,
	TextParagraphPauseTime: 0,
}

orderResp, err := client.CreateOrder(context.Background(), orderRequest)

About

ttsmaker is a Text-to-Speech library implemented using the TTSMaker API.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages