Working on audio commands
This commit is contained in:
22
src/cli.py
Normal file
22
src/cli.py
Normal 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()
|
||||
Reference in New Issue
Block a user