[VOICEVOX] added new voices and short comment (#128)

added some voices that hadn't been before, and wrote a comment on how to
use VOICEVOX.
This commit is contained in:
kwaroran
2023-05-29 15:20:23 +09:00
committed by GitHub
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