examples.tts_example¶
TTS Example - Text to Speech with vllm-mlx Usage: python examples/tts_example.py "Hello, how are you?" python examples/tts_example.py "Welcome!" --voice am_michael python examples/tts_example.py "Hola, como estas?" --lang es python examples/tts_example.py --list-voices python examples/tts_example.py --list-languages
View the complete module source at #L1-L138.
API details¶
Each callable below includes its exact signature, type annotations, inputs, defaults, return contract, documented exceptions, implementation source, and parsed docstring sections when the source provides them.
examples.tts_example
¶
TTS Example - Text to Speech with vllm-mlx
Usage
python examples/tts_example.py "Hello, how are you?" python examples/tts_example.py "Welcome!" --voice am_michael python examples/tts_example.py "Hola, como estas?" --lang es python examples/tts_example.py --list-voices python examples/tts_example.py --list-languages
examples.tts_example.LANGUAGES
module-attribute
¶
LANGUAGES = {'a': 'American English', 'b': 'British English', 'e': 'Español', 'f': 'Français', 'i': 'Italiano', 'p': 'Português (Brasil)', 'j': '日本語 (Japanese)', 'z': '中文 (Mandarin)', 'h': 'हिन्दी (Hindi)'}
examples.tts_example.LANG_ALIASES
module-attribute
¶
LANG_ALIASES = {'en': 'a', 'en-us': 'a', 'en-gb': 'b', 'es': 'e', 'spanish': 'e', 'fr': 'f', 'french': 'f', 'it': 'i', 'italian': 'i', 'pt': 'p', 'pt-br': 'p', 'portuguese': 'p', 'ja': 'j', 'japanese': 'j', 'zh': 'z', 'chinese': 'z', 'hi': 'h', 'hindi': 'h'}
examples.tts_example.main
¶
Source code in examples/tts_example.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
Complete contract reference¶
Expand any definition for its exact inputs, annotations, defaults, return contract, directly raised exceptions, source-grounded behavior, and immutable line link. This section includes private and nested definitions that ordinary API generators omit.
examples.tts_example.main · function
Function main calls argparse.ArgumentParser, parser.add_argument, parser.parse_args, print; returns None.
Parameters
This callable has no explicit inputs.
Returns
- Type:
not annotated - Direct return expressions:
None
Exceptions and behavior
Function main calls argparse.ArgumentParser, parser.add_argument, parser.parse_args, print; returns None.
No direct raise statement appears in this definition.
Complete symbol map¶
This map also includes private definitions and nested helpers. The signature column exposes every explicit input even when an internal helper has no dedicated parameter prose.
| Symbol | Kind | Signature and inputs | What it does | Source |
|---|---|---|---|---|
main |
function | main() -> not annotated |
Function main calls argparse.ArgumentParser, parser.add_argument, parser.parse_args, print; returns None. |
#L46-L134 |