Browse Source

[Doc] Fix the doc

monf 7 years ago
parent
commit
40d7041612
2 changed files with 4 additions and 4 deletions
  1. 1 1
      kalliope/tts/acapela/README.md
  2. 3 3
      kalliope/tts/acapela/acapela.py

+ 1 - 1
kalliope/tts/acapela/README.md

@@ -4,7 +4,7 @@ This TTS is based on the [Acapela engine](http://www.acapela-group.com/)
 
 | Parameters | Required | Default | Choices                                                                   | Comment                                                                     |
 |------------|----------|---------|---------------------------------------------------------------------------|-----------------------------------------------------------------------------|
-| voice      | YES      |         | 34 languages (https://acapela-box.com/AcaBox/index.php), example: "manon" | Language are corresponding to an id pls check the note beside to find yours |
+| voice      | YES      |         | 34 languages (https://acapela-box.com/AcaBox/index.php), example: "manon" | Check available voices on the web site                                      |
 | spd        | NO       | 180     | Min: 120, Max: 240                                                        | Speech rate                                                                 |
 | vct        | NO       | 100     | Min: 85, Max: 115                                                         | Voice shaping                                                               |
 | cache      | No       | TRUE    | True / False                                                              | True if you want to use the cache with this TTS                             |

+ 3 - 3
kalliope/tts/acapela/acapela.py

@@ -54,7 +54,7 @@ class Acapela(TTSModule):
         # Prepare payload
         payload = self.get_payload()
 
-        cookie = Acapela.get_cookie()
+        cookie = Acapela._get_cookie()
 
         # Get the mp3 URL from the page
         mp3_url = Acapela.get_audio_link(TTS_URL, payload, cookie)
@@ -113,10 +113,10 @@ class Acapela(TTSModule):
         return data["snd_url"]
 
     @staticmethod
-    def get_cookie():
+    def _get_cookie():
         """
         Get a cookie that is used to authenticate post request
-        :return: 
+        :return: the str cookie
         """
         returned_cookie = ""
         index_url = "https://acapela-box.com/AcaBox/index.php"