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) server_app.command("test")(server.test) audio_app.command("list")(audio.list_devices) audio_app.command("test")(audio.test_device) audio_app.command("install")(audio.install) # Register subcommands app.add_typer(server_app, name="server") app.add_typer(audio_app, name="audio") if __name__ == "__main__": app()