用途:当用户希望从音频中同时获得转写文本与增强信息,而非单独做文本分析时,可使用本技能。适用于对音频运行摘要、主题、意图、情感、实体检测、段落、搜索、说话人分离或话语(utterances)等处理。
主要能力:Rust crate 并未提供独立的 audio_intelligence 模块,音频智能通过 STT Options 暴露,并依赖 listen 功能(基于预录音频转写实现)。OptionsBuilder 上的相关标志包括 detect_entities、intents、sentiment、topics、summarize、paragraphs、utterances、diarize、search、keywords、keyterms、multichannel。结果位置分布在 response.results.summary、topics、intents、sentiments,以及 response.results.channels[0].alternatives[0] 下的 entities、paragraphs、search,还有 response.results.utterances。
使用方式:依赖配置为 deepgram = { version = "0.10.0", default-features = false, features = ["listen"] } 与 tokio = { version = "1", features = ["full"] }。用 Deepgram::new(std::env::var("DEEPGRAM_API_KEY")?) 初始化,构造 Options 后调用 dg.transcription().prerecorded(source, &options)。
限制与注意:无独立 Rust 模块;预录模式覆盖最全,类型化结果主要在 common::batch_response,实时 StreamResponse 不暴露同样的智能对象;响应字段嵌套,部分在 results,部分在 channels[...].alternatives[...];各功能在不同 API 模式下可用性不同,并非所有标志对实时流同样有意义。参考文件包括 src/common/options.rs、src/common/batch_response.rs、src/listen/rest.rs 及 examples/transcription/rest 下的示例。跨语言产品知识可安装 npx skills add deepgram/skills。