htgo tts
v1.6
https://hegedustibor.github.io/htgo-tts/
go get "github.com/hegedustibor/htgo-tts"
go get -u "github.com/hegedustibor/htgo-tts"
go clean -i "github.com/hegedustibor/htgo-tts"
import "github.com/hegedustibor/htgo-tts"
import "github.com/hegedustibor/htgo-tts/voices" speech := htgotts. Speech { Folder : "audio" , Language : voices . English }
speech . Speak ( "Your sentence." ) import (
htgotts "github.com/hegedustibor/htgo-tts"
handlers "github.com/hegedustibor/htgo-tts/handlers"
voices "github.com/hegedustibor/htgo-tts/voices"
)
speech := htgotts. Speech { Folder : "audio" , Language : voices . English , Handler : & handlers. MPlayer {}}
speech . Speak ( "Your sentence." )NOTA: O manipulador "nativo" trabalha em torno da biblioteca OTO, consulte a seção "Pré -requisito" para trabalhar com este manipulador
import (
htgotts "github.com/hegedustibor/htgo-tts"
handlers "github.com/hegedustibor/htgo-tts/handlers"
voices "github.com/hegedustibor/htgo-tts/voices"
)
speech := htgotts. Speech { Folder : "audio" , Language : voices . English , Handler : & handlers. Native {}}
speech . Speak ( "Your sentence." ) import (
htgotts "github.com/hegedustibor/htgo-tts"
handlers "github.com/hegedustibor/htgo-tts/handlers"
voices "github.com/hegedustibor/htgo-tts/voices"
)
speech := htgotts. Speech { Folder : "audio" , Language : voices . English , Proxy : "https://..." }
speech . Speak ( "Your sentence." )Se você encontrar problemas usando o HTGO-TTS ou gostaria de sugerir melhorias no código-fonte, poderá criar um problema na guia "Problemas". Se você quiser contribuir com o código-fonte HTGO-TTS, envie uma solicitação de tração.
O HTGO-TTS é um software livre e está disponível sob a licença do MIT. Para obter mais informações, consulte o arquivo de licença no repositório de código -fonte.
Divirta-se!