7 Commits
Author SHA1 Message Date
SpenserCai d35cded867 Merge pull request #14 from zombieyang/main
fill the options of STRING field
2024-11-27 17:22:04 +08:00
SpenserCai b5e6cdf4c4 Update README.md
fix
2024-11-21 16:34:34 +08:00
SpenserCai cfa2974af9 Update README.md
Add MacOS install way
2024-11-21 16:31:55 +08:00
zombieyang b081f67dc0 fill the options of STRING field 2024-11-08 23:11:17 +08:00
SpenserCai 480c7ca238 Merge pull request #10 from SpenserCai/dev
add matcha and update pynini in readme
2024-10-06 12:00:55 +08:00
SpenserCai 4f4edb5af3 Merge pull request #6 from SpenserCai/dev
更新 README.md
2024-10-05 20:26:58 +08:00
SpenserCai efa8e11d52 Merge pull request #5 from SpenserCai/dev
Merge pull request #4 from SpenserCai/main
2024-10-05 17:30:04 +08:00
2 changed files with 35 additions and 8 deletions
+10 -1
View File
@@ -51,6 +51,15 @@ pip install -r requirements.txt
```
### MacOS
If meet error when you install
```bash
brew install openfst
export CPPFLAGS="-I/opt/homebrew/include"
export LDFLAGS="-L/opt/homebrew/lib"
pip install -r requirements.txt
```
If your network is unstable, you can pre-download the model from the following sources and place it in the appropriate directory.
- [CosyVoice-300M](https://modelscope.cn/models/iic/CosyVoice-300M) -> `ComfyUI/models/CosyVoice/CosyVoice-300M`
@@ -62,4 +71,4 @@ If your network is unstable, you can pre-download the model from the following s
## WorkFlow
<img src="./assets/Workflow_FunAudioLLM.png" alt="zh-CN" />
<img src="./assets/Workflow_FunAudioLLM.png" alt="zh-CN" />
+25 -7
View File
@@ -43,7 +43,10 @@ class CosyVoiceZeroShotNode:
def INPUT_TYPES(s):
return {
"required":{
"tts_text":("STRING",),
"tts_text":("STRING", {
"default": "",
"multiline": True
}),
"speed":("FLOAT",{
"default": 1.0
}),
@@ -96,7 +99,10 @@ class CosyVoiceSFTNode:
def INPUT_TYPES(s):
return {
"required":{
"tts_text":("STRING",),
"tts_text":("STRING", {
"default": "",
"multiline": True
}),
"speaker_name":(s.sft_spk_list,{
"default":"中文女"
}),
@@ -129,7 +135,10 @@ class CosyVoiceCrossLingualNode:
def INPUT_TYPES(s):
return {
"required":{
"tts_text":("STRING",),
"tts_text":("STRING", {
"default": "",
"multiline": True
}),
"prompt_wav": ("AUDIO",),
"speed":("FLOAT",{
"default": 1.0
@@ -163,7 +172,10 @@ class CosyVoiceInstructNode:
def INPUT_TYPES(s):
return {
"required":{
"tts_text":("STRING",),
"tts_text":("STRING", {
"default": "",
"multiline": True
}),
"speaker_name":(s.sft_spk_list,{
"default":"中文女"
}),
@@ -194,7 +206,9 @@ class CosyVoiceLoadSpeakerModelNode:
def INPUT_TYPES(s):
return {
"required":{
"speaker_name":("STRING",),
"speaker_name":("STRING", {
"default": ""
}),
"model_dir":("STRING",{ "default":get_speaker_default_path()}),
}
}
@@ -215,7 +229,9 @@ class CosyVoiceLoadSpeakerModelFromUrlNode:
def INPUT_TYPES(s):
return {
"required":{
"model_url":("STRING",),
"model_url":("STRING", {
"default": ""
}),
}
}
@@ -234,7 +250,9 @@ class CosyVoiceSaveSpeakerModelNode:
return {
"required":{
"spk_model":("SPK_MODEL",),
"speaker_name":("STRING",),
"speaker_name":("STRING", {
"default": ""
}),
"model_dir":("STRING",{ "default":get_speaker_default_path()}),
}
}