@sathamai/livekit-plugin 0.1.3 → 0.1.4
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/README.md +2 -1
- package/dist/realtime.d.ts +1 -1
- package/dist/tts.d.ts +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -146,6 +146,7 @@ preset on the server and is not needed.
|
|
|
146
146
|
| `voice` | text, up to 64 characters | the language's | `voice` | |
|
|
147
147
|
| `breaths` | true / false, or `null` | off | - | |
|
|
148
148
|
| `naturalPauses` | true / false, or `null` | off | - | |
|
|
149
|
+
| `variant` | `'natural'` / `'warm'`, or `null` | the agent's, else natural | - | the voice's sound, from the next reply |
|
|
149
150
|
| `continuation` | true / false, or `null` | true | - | each phrase carries on from the one before; needs session controls |
|
|
150
151
|
| `speed` | 1 to 1 | 1.0 | `speed` | 1.0 only today; needs session controls |
|
|
151
152
|
| `phrasing.first_phrase_max_chars` | 1 to 120 | 120 | - | at least min_phrase_chars; needs session controls |
|
|
@@ -197,7 +198,7 @@ const session = new voice.AgentSession({
|
|
|
197
198
|
them one at a time. Each comes back streamed as raw PCM and goes out frame by frame as it arrives,
|
|
198
199
|
so the audio starts as soon as it is made. 24 kHz, mono.
|
|
199
200
|
- **Options:** `url`, `apiKey`, `voice` (a named voice such as `naina`, `malar` or `vikram`, or an
|
|
200
|
-
alias such as `hi-female`), `language`, `tone`, `pace`, `instructions`, `breaths`, `naturalPauses`, `pronunciations`, `pronunciationDictionaryId` and `model`, as in
|
|
201
|
+
alias such as `hi-female`), `language`, `tone`, `pace`, `instructions`, `breaths`, `naturalPauses`, `pronunciations`, `pronunciationDictionaryId`, `variant` and `model`, as in
|
|
201
202
|
`@sathamai/sdk`'s `audio.speech` (its README lists the values). `tts.updateOptions({...})` changes
|
|
202
203
|
them from the next sentence on; set one to `undefined` to clear it. A pause marker in the text
|
|
203
204
|
(`<break time="0.5s"/>`, 0.1 to 3 seconds) is spoken as that much silence, and a tone tag (`[happy]`) changes
|
package/dist/realtime.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare const REPLY_TIMEOUT_MS = 10000;
|
|
|
33
33
|
* Every satham control (see `Controls` in `@sathamai/sdk`): OpenAI's names (`model`, `voice`,
|
|
34
34
|
* `modalities`, `turnDetection`, `temperature`, `inputAudioNoiseReduction`, `inputAudioTranscription`,
|
|
35
35
|
* `maxResponseOutputTokens`, `speed`, `toolChoice`) and satham's own (`greeting`, `language`,
|
|
36
|
-
* `languageSwitch`, `voiceOnLanguageSwitch`, `breaths`, `naturalPauses`, `continuation`, `phrasing`,
|
|
36
|
+
* `languageSwitch`, `voiceOnLanguageSwitch`, `breaths`, `naturalPauses`, `variant`, `continuation`, `phrasing`,
|
|
37
37
|
* `normaliseNumbers`, `pronunciations`, `topP`, `tone`, `repeatGuard`, `driftGuard`, and `agent`, an
|
|
38
38
|
* optional preset agent on the server). `modalities`, `turnDetection` and `inputAudioTranscription` also
|
|
39
39
|
* decide what the model tells LiveKit it does, so they are fixed for a model once made.
|
package/dist/tts.d.ts
CHANGED
|
@@ -43,6 +43,8 @@ export interface TTSVoiceOptions {
|
|
|
43
43
|
pronunciations?: SpeechCreateParams['pronunciations'];
|
|
44
44
|
/** One of your stored dictionaries (`client.pronunciationDictionaries`), applied to every sentence. */
|
|
45
45
|
pronunciationDictionaryId?: string;
|
|
46
|
+
/** The voice's sound: `'natural'` (the default) or `'warm'`. */
|
|
47
|
+
variant?: SpeechCreateParams['variant'];
|
|
46
48
|
}
|
|
47
49
|
export interface TTSOptions extends TTSVoiceOptions {
|
|
48
50
|
/** Your satham endpoint (`https://...`); `$SATHAM_URL`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sathamai/livekit-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "satham realtime speech-to-speech for LiveKit Agents (Node.js)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"satham",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"prepack": "npm run build"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@sathamai/sdk": "^0.1.
|
|
43
|
+
"@sathamai/sdk": "^0.1.4"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@livekit/agents": "~1.10.0",
|