Merge pull request #29 from getpaseo/voice/background-downloading
Decouple onboarding from voice model downloads and gate unavailable voice starts
This commit is contained in:
@@ -1485,7 +1485,7 @@ export class DaemonClient {
|
||||
...(agentId ? { agentId } : {}),
|
||||
requestId,
|
||||
});
|
||||
return this.sendRequest({
|
||||
const response = await this.sendRequest({
|
||||
requestId,
|
||||
message,
|
||||
timeout: 10000,
|
||||
@@ -1499,6 +1499,14 @@ export class DaemonClient {
|
||||
return msg.payload;
|
||||
},
|
||||
});
|
||||
if (!response.accepted) {
|
||||
const codeSuffix =
|
||||
typeof response.reasonCode === "string" && response.reasonCode.trim().length > 0
|
||||
? ` (${response.reasonCode})`
|
||||
: "";
|
||||
throw new Error((response.error ?? "Failed to set voice mode") + codeSuffix);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
async sendVoiceAudioChunk(
|
||||
|
||||
Reference in New Issue
Block a user