forked from platypush/platypush
LINT/black for tts.mimic3
plugin.
This commit is contained in:
parent
35416f3ee3
commit
669f2eb2d2
1 changed files with 6 additions and 4 deletions
|
@ -1,8 +1,9 @@
|
||||||
import requests
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
from urllib.parse import urljoin, urlencode
|
from urllib.parse import urljoin, urlencode
|
||||||
from platypush.backend.http.app.utils import get_local_base_url
|
|
||||||
|
|
||||||
|
import requests
|
||||||
|
|
||||||
|
from platypush.backend.http.app.utils import get_local_base_url
|
||||||
from platypush.context import get_backend
|
from platypush.context import get_backend
|
||||||
from platypush.plugins import action
|
from platypush.plugins import action
|
||||||
from platypush.plugins.tts import TtsPlugin
|
from platypush.plugins.tts import TtsPlugin
|
||||||
|
@ -10,7 +11,7 @@ from platypush.schemas.tts.mimic3 import Mimic3VoiceSchema
|
||||||
|
|
||||||
|
|
||||||
class TtsMimic3Plugin(TtsPlugin):
|
class TtsMimic3Plugin(TtsPlugin):
|
||||||
"""
|
r"""
|
||||||
TTS plugin that uses the `Mimic3 webserver
|
TTS plugin that uses the `Mimic3 webserver
|
||||||
<https://github.com/MycroftAI/mimic3>`_ provided by `Mycroft
|
<https://github.com/MycroftAI/mimic3>`_ provided by `Mycroft
|
||||||
<https://mycroft.ai/>`_ as a text-to-speech engine.
|
<https://mycroft.ai/>`_ as a text-to-speech engine.
|
||||||
|
@ -42,7 +43,7 @@ class TtsMimic3Plugin(TtsPlugin):
|
||||||
voice: str = 'en_UK/apope_low',
|
voice: str = 'en_UK/apope_low',
|
||||||
media_plugin: Optional[str] = None,
|
media_plugin: Optional[str] = None,
|
||||||
player_args: Optional[dict] = None,
|
player_args: Optional[dict] = None,
|
||||||
**kwargs
|
**kwargs,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
:param server_url: Base URL of the web server that runs the Mimic3 engine.
|
:param server_url: Base URL of the web server that runs the Mimic3 engine.
|
||||||
|
@ -69,6 +70,7 @@ class TtsMimic3Plugin(TtsPlugin):
|
||||||
def say(
|
def say(
|
||||||
self,
|
self,
|
||||||
text: str,
|
text: str,
|
||||||
|
*_,
|
||||||
server_url: Optional[str] = None,
|
server_url: Optional[str] = None,
|
||||||
voice: Optional[str] = None,
|
voice: Optional[str] = None,
|
||||||
player_args: Optional[dict] = None,
|
player_args: Optional[dict] = None,
|
||||||
|
|
Loading…
Reference in a new issue