Skip to content

Commit c0529a0

Browse files
authored
Merge pull request elizaOS#2704 from elizaOS/tcm-fix-sttspace-type
fix: correct stt plugin userId type
2 parents 52dad5f + afb4cd9 commit c0529a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client-twitter/src/plugins/SttTtsSpacesPlugin.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export class SttTtsPlugin implements Plugin {
260260
/**
261261
* On speaker silence => flush STT => GPT => TTS => push to Janus
262262
*/
263-
private async processAudio(userId: UUID): Promise<void> {
263+
private async processAudio(userId: string): Promise<void> {
264264
if (this.isProcessingAudio) {
265265
return;
266266
}
@@ -399,7 +399,7 @@ export class SttTtsPlugin implements Plugin {
399399
userId: string // This is the raw Twitter user ID like 'tw-1865462035586142208'
400400
): Promise<string> {
401401
// Extract the numeric ID part
402-
const numericId = userId.replace('tw-', '');
402+
const numericId = userId.replace("tw-", "");
403403
const roomId = stringToUuid(`twitter_generate_room-${this.spaceId}`);
404404

405405
// Create consistent UUID for the user

0 commit comments

Comments
 (0)