echonova 0.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- echonova/__init__.py +40 -0
- echonova/_base_client.py +776 -0
- echonova/_client.py +490 -0
- echonova/_config.py +128 -0
- echonova/_core/__init__.py +1 -0
- echonova/_core/_classifier.py +70 -0
- echonova/_core/_envelope.py +101 -0
- echonova/_core/_files.py +226 -0
- echonova/_core/_ratelimit.py +99 -0
- echonova/_core/_retry.py +150 -0
- echonova/_core/_rules.py +199 -0
- echonova/_data/error-rules.json +132 -0
- echonova/_logging.py +41 -0
- echonova/_operations.py +97 -0
- echonova/_pagination.py +134 -0
- echonova/_polling.py +207 -0
- echonova/_response.py +114 -0
- echonova/_streaming/__init__.py +75 -0
- echonova/_streaming/_aio.py +40 -0
- echonova/_streaming/_api.py +216 -0
- echonova/_streaming/_errors.py +174 -0
- echonova/_streaming/_link.py +246 -0
- echonova/_streaming/_options.py +107 -0
- echonova/_streaming/_pcm_framer.py +61 -0
- echonova/_streaming/_stt_protocol.py +364 -0
- echonova/_streaming/_stt_session.py +612 -0
- echonova/_streaming/_transcribe.py +727 -0
- echonova/_streaming/_tts_protocol.py +726 -0
- echonova/_streaming/_tts_session.py +1045 -0
- echonova/_streaming/_types.py +216 -0
- echonova/_streaming/_ws_async.py +210 -0
- echonova/_streaming/_ws_sync.py +214 -0
- echonova/_transport.py +91 -0
- echonova/_version.py +1 -0
- echonova/audio.py +248 -0
- echonova/errors.py +363 -0
- echonova/py.typed +0 -0
- echonova/resources/__init__.py +30 -0
- echonova/resources/_base.py +76 -0
- echonova/resources/agents.py +143 -0
- echonova/resources/sound_cleaning.py +298 -0
- echonova/resources/speech_to_text.py +597 -0
- echonova/resources/text_to_speech.py +515 -0
- echonova/resources/widgets.py +70 -0
- echonova/types/__init__.py +9 -0
- echonova/types/_base.py +166 -0
- echonova/types/models.py +390 -0
- echonova/types/params.py +62 -0
- echonova/types/streaming.py +57 -0
- echonova/webhooks.py +291 -0
- echonova-0.0.1.dist-info/METADATA +398 -0
- echonova-0.0.1.dist-info/RECORD +54 -0
- echonova-0.0.1.dist-info/WHEEL +4 -0
- echonova-0.0.1.dist-info/licenses/LICENSE +21 -0
echonova/__init__.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Official Python SDK for the EchoNova speech API.
|
|
2
|
+
|
|
3
|
+
Quick start::
|
|
4
|
+
|
|
5
|
+
from echonova import EchoNova
|
|
6
|
+
|
|
7
|
+
client = EchoNova() # reads ECHONOVA_API_KEY
|
|
8
|
+
speech = client.text_to_speech.generate("Hello", voice_id=voice_id)
|
|
9
|
+
client.download(speech.audio_url, to="hello.wav")
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from . import audio, types, webhooks
|
|
13
|
+
from ._client import AsyncEchoNova, EchoNova
|
|
14
|
+
from ._config import DEFAULT_BASE_URL, DEFAULT_MAX_RETRIES, Timeout
|
|
15
|
+
from ._core._ratelimit import RateLimitInfo
|
|
16
|
+
from ._pagination import AsyncPage, AsyncPageRequest, Page
|
|
17
|
+
from ._response import RawResponse
|
|
18
|
+
from ._version import __version__
|
|
19
|
+
from .audio import Audio
|
|
20
|
+
from .errors import * # noqa: F403
|
|
21
|
+
from .errors import __all__ as _errors_all
|
|
22
|
+
|
|
23
|
+
__all__ = [
|
|
24
|
+
"DEFAULT_BASE_URL",
|
|
25
|
+
"Audio",
|
|
26
|
+
"DEFAULT_MAX_RETRIES",
|
|
27
|
+
"AsyncEchoNova",
|
|
28
|
+
"AsyncPage",
|
|
29
|
+
"AsyncPageRequest",
|
|
30
|
+
"EchoNova",
|
|
31
|
+
"Page",
|
|
32
|
+
"RateLimitInfo",
|
|
33
|
+
"RawResponse",
|
|
34
|
+
"Timeout",
|
|
35
|
+
"__version__",
|
|
36
|
+
"audio",
|
|
37
|
+
"types",
|
|
38
|
+
"webhooks",
|
|
39
|
+
*_errors_all,
|
|
40
|
+
]
|