Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,29 @@

"""Speechify plugin for LiveKit Agents

See https://docs.livekit.io/agents/integrations/tts/speechify/ for more information.
Provides Speechify text-to-speech for LiveKit voice agents. See
https://docs.speechify.ai for API details.
"""

from .models import TTSEncoding, TTSModels
from .tts import DEFAULT_VOICE_ID, TTS, Voice
from livekit.agents import Plugin
from speechify.types.get_voice import GetVoice

from .log import logger
from .models import TTSModels
from .tts import DEFAULT_MODEL, DEFAULT_VOICE_ID, TTS, ChunkedStream, SynthesizeStream
from .version import __version__

__all__ = [
"TTS",
"Voice",
"TTSEncoding",
"ChunkedStream",
"SynthesizeStream",
"GetVoice",
"TTSModels",
"DEFAULT_VOICE_ID",
"DEFAULT_MODEL",
"__version__",
]
Comment thread
luke-speechify marked this conversation as resolved.

from livekit.agents import Plugin

from .log import logger


class SpeechifyPlugin(Plugin):
def __init__(self) -> None:
Expand All @@ -42,7 +45,6 @@ def __init__(self) -> None:

Plugin.register_plugin(SpeechifyPlugin())

# Cleanup docs of unexported modules
_module = dir()
NOT_IN_ALL = [m for m in _module if m not in __all__]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Literal

TTSModels = Literal[
"simba-english",
"simba-multilingual",
]

TTSEncoding = Literal[
"mp3_24000",
"wav_48000",
"ogg_24000",
"aac_24000",
"simba-3.0",
"simba-3.2",
]

VoiceType = Literal["shared", "personal"]
Expand Down
Loading
Loading