[VOICEVOX] added new voices and short comment

This commit is contained in:
drPpZero
2023-05-29 03:02:33 +09:00
parent 14d7a0e355
commit 967169fddd
4 changed files with 787 additions and 12 deletions

View File

@@ -133,9 +133,11 @@ export async function getVOICEVOXVoices() {
const speakerData = await fetch(`${db.voicevoxUrl}/speakers`)
const speakerList = await speakerData.json()
const speakersInfo = speakerList.map((speaker) => {
const normalStyle = speaker.styles.find((style) => style.name === 'ノーマル' || 'ふつう' || '人間ver.')
return {'name': speaker.name, 'id': normalStyle.id}
const styles = speaker.styles.map((style) => {
return {name: style.name, id: `${style.id}`}
})
return {name: speaker.name, list: JSON.stringify(styles)}
})
speakersInfo.unshift({ name: "None", list: null})
return speakersInfo;
}

View File

@@ -322,6 +322,7 @@ export interface character{
ttsMode?:string
ttsSpeech?:string
voicevoxConfig?:{
speaker?: string
SPEED_SCALE?: number
PITCH_SCALE?: number
INTONATION_SCALE?: number