File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
mycroft_tts_plugin_botnoi Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import requests
5
5
from mycroft .tts import TTS , TTSValidator
6
+ from mycroft .util .log import LOG
6
7
7
8
class botnoiTTSPlugin (TTS ):
8
9
"""Interface to Botnoi TTS."""
9
10
def __init__ (self , lang , config ):
11
+ LOG .warning ('Krixen-init' )
10
12
super ().__init__ (lang , config , BotnoiTTSValidator (self ))
11
13
12
14
def get_tts (self , sentence , wav_file ):
15
+ LOG .warning ('Krixen-get_tts' )
13
16
url = "https://openapi.botnoi.ai/service-api/text2speech-female?text=สวัสดี&speaker=tonkhaow"
14
17
headers = {
15
18
'Authorization' : 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MjYzMDgxMjYsImlkIjoiZjgxZDFlYmEtNTQ4Zi00ZjdiLWI1N2YtZDYxZjFhNGFlNmI3IiwiaXNzIjoiRVd0MGxYWHNzUVMzUklsMkVUVWczQnRYVEdHVkdFSlciLCJuYW1lIjoiS2VuIiwicGljIjoiaHR0cHM6Ly9wcm9maWxlLmxpbmUtc2Nkbi5uZXQvMGhMd0dtOElpUUUxaDZGRHdadUdCc0QwWlJIVFVOT2hVUUFub0lPRmhIU1d4ZWNWWUdUM05VYXcxSEhUOVFkd0VQUlNkWk9Bb1hTejFRIn0.jFbxULw3Mm9zY47n-QGVVQSsYUhy_T1Xqh_zoBrnHCY'
You can’t perform that action at this time.
0 commit comments