Skip to content

Commit

Permalink
chore: updated impl
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Jan 4, 2025
1 parent 8f160bd commit 75a0f4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 1 addition & 6 deletions packages/stage/src/components/Widgets/Stage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,11 @@ const ttsQueue = useQueue<string>({
const elevenlabs = createUnElevenLabs({
apiKey: elevenLabsApiKey.value,
baseURL: 'https://unspeech.hyp3r.link/v1/',
model: 'eleven_multilingual_v2',
})
const res = await generateSpeech({
...elevenlabs.speech({
stream: true,
// voice: 'ShanShan',
// Quite good for English
model: 'eleven_multilingual_v2',
voice,
// Beatrice is not 'childish' like the others
// voice: 'Beatrice',
voiceSettings: {
stability: 0.4,
similarityBoost: 0.5,
Expand Down
5 changes: 5 additions & 0 deletions packages/stage/src/constants/elevenlabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export enum Voice {
export const voiceMap: Record<Voice, string> = {
// English
[Voice.Myriam]: 'lNxY9WuCBCZCISASyJ55',
// Beatrice is not 'childish' like the others
// voice: 'Beatrice',
[Voice.Beatrice]: 'KAsXoQDshjF6ehsWa1mF',
[Voice.Camilla_KM]: 'dLhSyo03JRp5WkGpUlz1',
[Voice.SallySunshine]: 'qswttdunP3b44zVZKMRB',
Expand All @@ -22,6 +24,9 @@ export const voiceMap: Record<Voice, string> = {
[Voice.Morioki]: '8EkOjt4xTPGMclNlh1pk',
}

// voice: 'ShanShan',
// Quite good for English

export const enVoiceList = [
Voice.Myriam,
Voice.Beatrice,
Expand Down

0 comments on commit 75a0f4a

Please sign in to comment.