osborn 0.9.109 → 0.9.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -586,7 +586,7 @@ function startApiServer(workingDir, port) {
|
|
|
586
586
|
// WAV/linear16, not mp3: mp3 files carry encoder padding (leading/
|
|
587
587
|
// trailing silence + boundary click) — back-to-back sentence clips
|
|
588
588
|
// were heard as "cracking". WAV is gapless-safe and cheaper to decode.
|
|
589
|
-
const dg = await fetch('https://api.deepgram.com/v1/speak?model=aura-2-thalia-en&encoding=linear16&sample_rate=
|
|
589
|
+
const dg = await fetch('https://api.deepgram.com/v1/speak?model=aura-2-thalia-en&encoding=linear16&sample_rate=48000&container=wav', {
|
|
590
590
|
method: 'POST',
|
|
591
591
|
headers: { 'Authorization': `Token ${dgKey}`, 'Content-Type': 'application/json' },
|
|
592
592
|
body: JSON.stringify({ text }),
|