Versions in this module Expand all Collapse all v1 v1.0.3 Jul 20, 2022 v1.0.2 May 18, 2022 Changes in this version + const EmotionEvil + const EmotionGood + const EmotionNeutral + const FormatLPCM + const FormatOgg + const LangEN + const LangRU + const LangTR + const Rate16k + const Rate48k + const Rate8k + const SexAll + const SexFemale + const SexMale + const SpeedMostFastest + const SpeedSlowest + const SpeedStandard + const TopicGeneral + const TopicGeneralDeprecated + const TopicGeneralRC + const TopicMaps + const VoiceAlena + const VoiceAlyss + const VoiceErkanyavas + const VoiceErmil + const VoiceFilipp + const VoiceJane + const VoiceNick + const VoiceOksana + const VoiceOmazh + const VoiceSilaerkan + const VoiceZahar + const YaSTTUrl + const YaTTSUrl + func EncodePCMToWav(in io.Reader, out io.WriteSeeker, sampleRate, bitDepth, numChans int) error + func SpeechToTextShort(conf *STTConfig) (string, error) + func TextToSpeech(config *TTSConfig) (io.ReadCloser, error) + type STTConfig struct + Data io.Reader + Format string + Lang string + ProfanityFilter bool + Rate int + Topic string + YaAPIKey string + YaFolderID string + func STTConfigDefault(yaFolderID, yaAPIKey string, data io.Reader) *STTConfig + type TTSConfig struct + Emotion string + Format string + Lang string + Rate int + SSML string + Speed float32 + Text string + Voice string + YaAPIKey string + YaFolderID string + func TTSDefaultConfigSSML(yaFolderID, yaAPIKey, SSML string) *TTSConfig + func TTSDefaultConfigText(yaFolderID, yaAPIKey, text string) *TTSConfig + type Voice struct + Lang string + Male bool + MameRu string + NameEn string + Premium bool + Voice string + func Voices(lang string, sex, premium int) (res []Voice)