Skip to content

Commit

Permalink
chore: bump xsai, update speech params
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Jan 9, 2025
1 parent 242f5c9 commit 3913f25
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 74 deletions.
5 changes: 2 additions & 3 deletions packages/stage-ui/src/components/Widgets/Stage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,14 @@ const ttsQueue = useQueue<string>({
baseURL: 'https://unspeech.hyp3r.link/v1/',
})
const res = await generateSpeech({
...elevenlabs.speech({
model: 'elevenlabs/eleven_multilingual_v2',
voice: voiceMap[voice],
...elevenlabs.speech('elevenlabs/eleven_multilingual_v2', {
voiceSettings: {
stability: 0.4,
similarityBoost: 0.5,
},
}),
input: ctx.data,
voice: voiceMap[voice],
})
const elapsed = Date.now() - now
Expand Down
117 changes: 55 additions & 62 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ packages:
- '!**/dist/**'

catalog:
'@xsai/generate-speech': ^0.0.24
'@xsai/generate-text': ^0.0.24
'@xsai/model': ^0.0.24
'@xsai/providers': ^0.0.24
'@xsai/shared-chat': ^0.0.24
'@xsai/stream-text': ^0.0.24
'@xsai/generate-speech': ^0.0.26
'@xsai/generate-text': ^0.0.26
'@xsai/model': ^0.0.26
'@xsai/providers': ^0.0.26
'@xsai/shared-chat': ^0.0.26
'@xsai/stream-text': ^0.0.26
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,14 @@ export async function handleSummon(log: ReturnType<typeof useLogg>, interaction:
})

const speechRes = await generateSpeech({
...elevenlabs.speech({
model: 'eleven_multilingual_v2',
voice: 'lNxY9WuCBCZCISASyJ55',
...elevenlabs.speech('eleven_multilingual_v2', {
voiceSettings: {
stability: 0.4,
similarityBoost: 0.5,
},
}),
input: res.text,
voice: 'lNxY9WuCBCZCISASyJ55',
})

log.withField('length', speechRes.byteLength).log('Generated speech')
Expand Down

0 comments on commit 3913f25

Please sign in to comment.