

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 APIs為 Amazon Chime SDK 建立呼叫分析組態
<a name="create-config-apis"></a>

您可以以程式設計方式建立 Voice Connectors 和呼叫分析組態，然後將其建立關聯，以啟動呼叫分析工作流程。本指南假設您知道如何撰寫程式碼。

您使用APIs 會根據工作流程類型而有所不同。例如，若要記錄音訊，請先呼叫 [https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_media-pipelines-chime_CreateMediaInsightsPipelineConfiguration.html](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_media-pipelines-chime_CreateMediaInsightsPipelineConfiguration.html) API 來建立呼叫分析組態。然後，您可以呼叫 [CreateVoiceConnector](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_voice-chime_CreateVoiceConnector.html) 來建立語音連接器。最後，您可以使用 [https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_voice-chime_PutVoiceConnectorStreamingConfiguration.html](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_voice-chime_PutVoiceConnectorStreamingConfiguration.html) API 將組態與語音連接器建立關聯。

相反地，若要使用 Kinesis 視訊串流生產者記錄音訊，您可以呼叫 [https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_media-pipelines-chime_CreateMediaInsightsPipelineConfiguration.html](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_media-pipelines-chime_CreateMediaInsightsPipelineConfiguration.html)，然後呼叫 [https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_media-pipelines-chime_CreateMediaInsightsPipeline.html](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_media-pipelines-chime_CreateMediaInsightsPipeline.html) API。

如需使用通話分析組態啟用不同工作流程的詳細資訊，請參閱本節[使用 Amazon Chime SDK 的通話分析組態](using-call-analytics-configurations.md)稍後的 中的工作流程。