ไธญๆๆๆกฃ | English
A high-quality text-to-speech (TTS) ComfyUI custom node powered by the Maya1 model, featuring multiple voice styles and flexible parameter configuration.
cd ComfyUI/custom_nodes/
git clone https://github.com/ruanjianlun/comfyui_maya1_tts_alun.git
cd comfyui_alun_maya1
pip install -r requirements.txt
ComfyUI/custom_nodes/ directorypip install -r requirements.txt
Main dependencies include:
transformers - Hugging Face model librarytorch - PyTorch deep learning frameworksnac - SNAC audio codecsoundfile - Audio file processingnumpy - Numerical computingAdd Node -> audio -> maya1 -> Maya1 Text to SpeechThe node provides the following parameters:
| Parameter | Type | Description | Default |
|---|---|---|---|
| text | String | Text to convert to speech | "Hello, this is a test..." |
| voice_preset | Dropdown | Voice style preset | Male-Mature |
| chunk_length | Integer | Text chunk length (characters) | 50 |
| temperature | Float | Generation temperature (0.1-1.0, higher = more random) | 0.4 |
| custom_description | String (Optional) | Custom voice description | Empty |
5 built-in voice style presets:
If presets don't meet your needs, use the custom_description parameter for custom voice characteristics:
Realistic male voice in the 40s age with british accent.
Deep pitch, authoritative tone, slow pacing.
Description template:
comfyui_alun_maya1/
โโโ __init__.py # Node registration entry file
โโโ maya_tts_node.py # Main node implementation
โโโ config.py # Configuration file (model paths, constants, etc.)
โโโ requirements.txt # Python dependencies list
โโโ workflow_example.json # ComfyUI workflow example
โโโ README.md # Project documentation (English)
โโโ README.zh-CN.md # Project documentation (Chinese)
Models will auto-download to:
ComfyUI/models/maya1_tts_alun/
Includes the following model files:
Generated audio files are saved to:
ComfyUI/output/maya_tts_XXXXXX.wav
File naming format: maya_tts_{timestamp}.wav
The project includes a basic workflow example workflow_example.json, demonstrating how to:
Load buttonworkflow_example.json fileQueue Prompt to start generationEdit the get_maya_model_path() function in config.py:
def get_maya_model_path():
# Custom model path
return "/your/custom/path/to/models"
Add to the VOICE_PRESETS dictionary in config.py:
VOICE_PRESETS = {
# ... existing presets
"Custom-Preset-Name": "Your custom voice description here",
}
To free up VRAM, call:
from config import clear_model_cache
clear_model_cache()
A: First run requires downloading models (~4GB), please be patient. Models cache locally, subsequent usage will be much faster.
A:
chunk_length parameter (e.g., change to 30)A:
temperature parameter (0.3-0.5 usually works well)A: Current version primarily supports English text-to-speech, Chinese support is limited. Recommended to use English text for best results.
A:
chunk_length (but may affect speech continuity)temperature valueThis project is open source under the MIT License.
If this project helps you, please:
Enjoy high-quality speech synthesis! ๐
8 commits
Python
100.0%
ไธญๆๆๆกฃ | English
A high-quality text-to-speech (TTS) ComfyUI custom node powered by the Maya1 model, featuring multiple voice styles and flexible parameter configuration.
cd ComfyUI/custom_nodes/
git clone https://github.com/ruanjianlun/comfyui_maya1_tts_alun.git
cd comfyui_alun_maya1
pip install -r requirements.txt
ComfyUI/custom_nodes/ directorypip install -r requirements.txt
Main dependencies include:
transformers - Hugging Face model librarytorch - PyTorch deep learning frameworksnac - SNAC audio codecsoundfile - Audio file processingnumpy - Numerical computingAdd Node -> audio -> maya1 -> Maya1 Text to SpeechThe node provides the following parameters:
| Parameter | Type | Description | Default |
|---|---|---|---|
| text | String | Text to convert to speech | "Hello, this is a test..." |
| voice_preset | Dropdown | Voice style preset | Male-Mature |
| chunk_length | Integer | Text chunk length (characters) | 50 |
| temperature | Float | Generation temperature (0.1-1.0, higher = more random) | 0.4 |
| custom_description | String (Optional) | Custom voice description | Empty |
5 built-in voice style presets:
If presets don't meet your needs, use the custom_description parameter for custom voice characteristics:
Realistic male voice in the 40s age with british accent.
Deep pitch, authoritative tone, slow pacing.
Description template:
comfyui_alun_maya1/
โโโ __init__.py # Node registration entry file
โโโ maya_tts_node.py # Main node implementation
โโโ config.py # Configuration file (model paths, constants, etc.)
โโโ requirements.txt # Python dependencies list
โโโ workflow_example.json # ComfyUI workflow example
โโโ README.md # Project documentation (English)
โโโ README.zh-CN.md # Project documentation (Chinese)
Models will auto-download to:
ComfyUI/models/maya1_tts_alun/
Includes the following model files:
Generated audio files are saved to:
ComfyUI/output/maya_tts_XXXXXX.wav
File naming format: maya_tts_{timestamp}.wav
The project includes a basic workflow example workflow_example.json, demonstrating how to:
Load buttonworkflow_example.json fileQueue Prompt to start generationEdit the get_maya_model_path() function in config.py:
def get_maya_model_path():
# Custom model path
return "/your/custom/path/to/models"
Add to the VOICE_PRESETS dictionary in config.py:
VOICE_PRESETS = {
# ... existing presets
"Custom-Preset-Name": "Your custom voice description here",
}
To free up VRAM, call:
from config import clear_model_cache
clear_model_cache()
A: First run requires downloading models (~4GB), please be patient. Models cache locally, subsequent usage will be much faster.
A:
chunk_length parameter (e.g., change to 30)A:
temperature parameter (0.3-0.5 usually works well)A: Current version primarily supports English text-to-speech, Chinese support is limited. Recommended to use English text for best results.
A:
chunk_length (but may affect speech continuity)temperature valueThis project is open source under the MIT License.
If this project helps you, please:
Enjoy high-quality speech synthesis! ๐
8 commits
Python
100.0%