@mulingai-npm/redis 3.30.2 → 3.31.0
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.
|
@@ -5,6 +5,10 @@ export type SttProvider = {
|
|
|
5
5
|
service: SttService;
|
|
6
6
|
model?: string;
|
|
7
7
|
};
|
|
8
|
+
export type TranscriptionWord = {
|
|
9
|
+
word: string;
|
|
10
|
+
confidence: number;
|
|
11
|
+
};
|
|
8
12
|
export type StreamingChunkData = {
|
|
9
13
|
startMs: number;
|
|
10
14
|
endMs: number;
|
|
@@ -14,6 +18,7 @@ export type StreamingChunkData = {
|
|
|
14
18
|
speechFinal: boolean;
|
|
15
19
|
provider: string;
|
|
16
20
|
model?: string;
|
|
21
|
+
words?: TranscriptionWord[];
|
|
17
22
|
};
|
|
18
23
|
export type MulingstreamChunkData = {
|
|
19
24
|
chunkId: string;
|
|
@@ -77,6 +82,7 @@ export declare class MulingstreamChunkManager {
|
|
|
77
82
|
confidence: number;
|
|
78
83
|
wordCount: number;
|
|
79
84
|
speechFinal: boolean;
|
|
85
|
+
words?: TranscriptionWord[];
|
|
80
86
|
};
|
|
81
87
|
}): Promise<MulingstreamChunkData>;
|
|
82
88
|
private getChunkId;
|
|
@@ -106,7 +106,8 @@ class MulingstreamChunkManager {
|
|
|
106
106
|
wordCount: streamingData.wordCount,
|
|
107
107
|
speechFinal: streamingData.speechFinal,
|
|
108
108
|
provider: sttProvider.service,
|
|
109
|
-
model: sttProvider.model
|
|
109
|
+
model: sttProvider.model,
|
|
110
|
+
words: streamingData.words
|
|
110
111
|
};
|
|
111
112
|
const translation = {};
|
|
112
113
|
const tts = {};
|
package/dist/redis-client.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export declare class RedisClient {
|
|
|
20
20
|
hset(key: string, data: Record<string, string>): Promise<number>;
|
|
21
21
|
hgetall(key: string): Promise<Record<string, string>>;
|
|
22
22
|
hincrby(key: string, field: string, increment: number): Promise<number>;
|
|
23
|
-
hincrbyfloat(key: string, field: string, increment: number): Promise<string>;
|
|
24
23
|
zadd(key: string, score: number, member: string): Promise<number>;
|
|
25
24
|
zrange(key: string, start: number, stop: number): Promise<string[]>;
|
|
26
25
|
zremrangebyrank(key: string, start: number, stop: number): Promise<number>;
|
package/dist/redis-client.js
CHANGED
|
@@ -55,9 +55,6 @@ class RedisClient {
|
|
|
55
55
|
async hincrby(key, field, increment) {
|
|
56
56
|
return this.client.hincrby(key, field, increment);
|
|
57
57
|
}
|
|
58
|
-
async hincrbyfloat(key, field, increment) {
|
|
59
|
-
return this.client.hincrbyfloat(key, field, increment);
|
|
60
|
-
}
|
|
61
58
|
async zadd(key, score, member) {
|
|
62
59
|
return this.client.zadd(key, score, member);
|
|
63
60
|
}
|