pi-voicekit 0.2.2 → 0.2.3
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/extensions/voice/post-process.ts +8 -0
- package/extensions/voice.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -401,7 +401,8 @@ these entries — they are not part of the conversation context — so they are
|
|
|
401
401
|
analysis, and they do keep the raw text on disk for as long as the session file exists.
|
|
402
402
|
Each entry also records how the pass was configured: the transcript length on its own
|
|
403
403
|
(separate from any text already in the editor), whether thinking was turned off for it,
|
|
404
|
-
and the output-token cap it carried
|
|
404
|
+
and the output-token cap it carried, plus the audio seconds it covered and which recogniser
|
|
405
|
+
produced it — which is what makes polish time readable as a speedup.
|
|
405
406
|
|
|
406
407
|
| Setting | Scope | Default | Notes |
|
|
407
408
|
| ------------------------- | ------------------ | ----------- | ------------------------------------------------------- |
|
|
@@ -244,6 +244,10 @@ export interface PolishAudit {
|
|
|
244
244
|
transcriptChars?: number;
|
|
245
245
|
/** Characters of the editor prefix, which is not part of the transcript. */
|
|
246
246
|
editorPrefixChars?: number;
|
|
247
|
+
/** Seconds of audio the dictation covered, so polish time can be read as a speedup. */
|
|
248
|
+
durationSec?: number;
|
|
249
|
+
/** Which recogniser produced it, so results are never pooled across backends. */
|
|
250
|
+
backend?: string;
|
|
247
251
|
/** True when the pass asked the model not to think. */
|
|
248
252
|
thinkingOff?: boolean;
|
|
249
253
|
/** The output-token cap the request carried, a cap and not a spend. */
|
|
@@ -259,6 +263,8 @@ export function buildPolishAudit(input: {
|
|
|
259
263
|
transcriptChars?: number;
|
|
260
264
|
editorPrefixChars?: number;
|
|
261
265
|
thinkingOff?: boolean;
|
|
266
|
+
durationSec?: number;
|
|
267
|
+
backend?: string;
|
|
262
268
|
maxTokens?: number;
|
|
263
269
|
telemetry?: {
|
|
264
270
|
model?: string;
|
|
@@ -282,6 +288,8 @@ export function buildPolishAudit(input: {
|
|
|
282
288
|
if (input.editorPrefixChars !== undefined) audit.editorPrefixChars = input.editorPrefixChars;
|
|
283
289
|
if (input.thinkingOff !== undefined) audit.thinkingOff = input.thinkingOff;
|
|
284
290
|
if (input.maxTokens !== undefined) audit.maxTokens = input.maxTokens;
|
|
291
|
+
if (input.durationSec !== undefined) audit.durationSec = input.durationSec;
|
|
292
|
+
if (input.backend !== undefined) audit.backend = input.backend;
|
|
285
293
|
const telemetry = input.telemetry;
|
|
286
294
|
if (telemetry) {
|
|
287
295
|
if (telemetry.model !== undefined) audit.model = telemetry.model;
|
package/extensions/voice.ts
CHANGED
|
@@ -1830,6 +1830,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
1830
1830
|
editorPrefixChars: prefix.length,
|
|
1831
1831
|
thinkingOff: polishTelemetry?.thinkingOff,
|
|
1832
1832
|
maxTokens: polishTelemetry?.maxTokens,
|
|
1833
|
+
durationSec: Number(elapsed),
|
|
1834
|
+
backend: config.backend,
|
|
1833
1835
|
written: wroteEditor ? finalText : undefined,
|
|
1834
1836
|
status: final.status,
|
|
1835
1837
|
disposition: final.disposition,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-voicekit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Voice in + voice out for Pi CLI — hold-to-talk STT (Deepgram streaming or 21 offline models) plus TTS (Kitten Nano, Piper, Kokoro, or Deepgram Aura)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|