Skip to content

SpeechInputPlanResult

This content is not available in your language yet.

type SpeechInputPlanResult =
| {
plan: SpeechInputPlan;
status: "ready";
}
| {
estimatedCharacters: number;
maxCharacters: number | null;
reason: | "empty_input"
| "unknown_limit"
| "invalid_configuration"
| "input_too_large"
| "segmentation_required"
| "segment_limit"
| "empty_segment";
status: "rejected";
};

朗读准备结果;拒绝时返回原因、估算字符数及已知上限,不调用语音服务。