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.
Files changed (54) hide show
  1. echonova/__init__.py +40 -0
  2. echonova/_base_client.py +776 -0
  3. echonova/_client.py +490 -0
  4. echonova/_config.py +128 -0
  5. echonova/_core/__init__.py +1 -0
  6. echonova/_core/_classifier.py +70 -0
  7. echonova/_core/_envelope.py +101 -0
  8. echonova/_core/_files.py +226 -0
  9. echonova/_core/_ratelimit.py +99 -0
  10. echonova/_core/_retry.py +150 -0
  11. echonova/_core/_rules.py +199 -0
  12. echonova/_data/error-rules.json +132 -0
  13. echonova/_logging.py +41 -0
  14. echonova/_operations.py +97 -0
  15. echonova/_pagination.py +134 -0
  16. echonova/_polling.py +207 -0
  17. echonova/_response.py +114 -0
  18. echonova/_streaming/__init__.py +75 -0
  19. echonova/_streaming/_aio.py +40 -0
  20. echonova/_streaming/_api.py +216 -0
  21. echonova/_streaming/_errors.py +174 -0
  22. echonova/_streaming/_link.py +246 -0
  23. echonova/_streaming/_options.py +107 -0
  24. echonova/_streaming/_pcm_framer.py +61 -0
  25. echonova/_streaming/_stt_protocol.py +364 -0
  26. echonova/_streaming/_stt_session.py +612 -0
  27. echonova/_streaming/_transcribe.py +727 -0
  28. echonova/_streaming/_tts_protocol.py +726 -0
  29. echonova/_streaming/_tts_session.py +1045 -0
  30. echonova/_streaming/_types.py +216 -0
  31. echonova/_streaming/_ws_async.py +210 -0
  32. echonova/_streaming/_ws_sync.py +214 -0
  33. echonova/_transport.py +91 -0
  34. echonova/_version.py +1 -0
  35. echonova/audio.py +248 -0
  36. echonova/errors.py +363 -0
  37. echonova/py.typed +0 -0
  38. echonova/resources/__init__.py +30 -0
  39. echonova/resources/_base.py +76 -0
  40. echonova/resources/agents.py +143 -0
  41. echonova/resources/sound_cleaning.py +298 -0
  42. echonova/resources/speech_to_text.py +597 -0
  43. echonova/resources/text_to_speech.py +515 -0
  44. echonova/resources/widgets.py +70 -0
  45. echonova/types/__init__.py +9 -0
  46. echonova/types/_base.py +166 -0
  47. echonova/types/models.py +390 -0
  48. echonova/types/params.py +62 -0
  49. echonova/types/streaming.py +57 -0
  50. echonova/webhooks.py +291 -0
  51. echonova-0.0.1.dist-info/METADATA +398 -0
  52. echonova-0.0.1.dist-info/RECORD +54 -0
  53. echonova-0.0.1.dist-info/WHEEL +4 -0
  54. 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
+ ]