Spaces:
Sleeping
Sleeping
Download src/utils/reduceTalkStyle.ts from ratalai/chatvrm_for_desh: direct link, hf CLI and curl.
- Browser
- Download file 372 Bytes
-
https://huggingface.co/spaces/ratalai/chatvrm_for_desh/resolve/main/src/utils/reduceTalkStyle.ts
- Command line
-
hf download hf://spaces/ratalai/chatvrm_for_desh/src/utils/reduceTalkStyle.ts
-
curl -L -o reduceTalkStyle.ts https://huggingface.co/spaces/ratalai/chatvrm_for_desh/resolve/main/src/utils/reduceTalkStyle.ts
372 Bytes
| /* koeiromap Free v1の制限に対応した声色 */ | |
| type ReducedTalkStyle = "talk" | "happy" | "sad"; | |
| /** | |
| * koeiromap Free v1用に声色パラメータを制限する | |
| */ | |
| export const reduceTalkStyle = (talkStyle: string): ReducedTalkStyle => { | |
| if (talkStyle == "talk" || talkStyle == "happy" || talkStyle == "sad") { | |
| return talkStyle; | |
| } | |
| return "talk"; | |
| }; | |