Working on audio commands

This commit is contained in:
2025-09-01 23:01:08 +02:00
commit 343d1d2f93
19 changed files with 1932 additions and 0 deletions

22
src/cli.py Normal file
View File

@@ -0,0 +1,22 @@
import typer
from .commands import server, audio
app = typer.Typer(help="MyTTSClient - Wyoming audio recording and transcription client")
# Create subcommands
server_app = typer.Typer(help="Wyoming server operations")
audio_app = typer.Typer(help="Audio device operations")
# Add commands to subcommands
server_app.command("check")(server.check)
audio_app.command("list")(audio.list_devices)
audio_app.command("test")(audio.test_device)
audio_app.command("config")(audio.config_info)
# Register subcommands
app.add_typer(server_app, name="server")
app.add_typer(audio_app, name="audio")
if __name__ == "__main__":
app()