You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These parameters are part of the `Smallest` instance. They can be set when creating the instance (as shown above). However, the `synthesize` function also accepts kwargs, allowing you to override these parameters for a specific synthesis request.
80
+
These parameters are part of the `Smallest` instance. They can be set when creating the instance (as shown above). However, the `synthesize` function also accepts `kwargs`, allowing you to override these parameters for a specific synthesis request.
81
81
82
82
For example, you can modify the speech speed and sample rate just for a particular synthesis call:
83
83
```py
@@ -120,9 +120,9 @@ if __name__ == "__main__":
120
120
-`speed`: Speech speed multiplier (default: 1.0)
121
121
-`add_wav_header`: Include WAV header in output (default: True)
122
122
-`transliterate`: Enable text transliteration (default: False)
These parameters are part of the `AsyncSmallest` instance. They can be set when creating the instance (as shown above). However, the `synthesize` function also accepts kwargs, allowing you to override any of these parameters on a per-request basis.
125
+
These parameters are part of the `AsyncSmallest` instance. They can be set when creating the instance (as shown above). However, the `synthesize` function also accepts `kwargs`, allowing you to override any of these parameters on a per-request basis.
126
126
127
127
For example, you can modify the speech speed and sample rate just for a particular synthesis request:
Copy file name to clipboardExpand all lines: smallest/exceptions.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,9 @@
1
1
classTTSError(Exception):
2
2
"""Base exception for TTS SDK"""
3
-
pass
3
+
default_message="API key is required. Please set the `SMALLEST_API_KEY` environment variable or visit https://waves.smallest.ai/ to obtain your API key."
0 commit comments