

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# Memulai dan menghentikan transkripsi langsung Amazon Chime SDK
<a name="initiate-transcription"></a>

Anda menggunakan Amazon Chime SDK [https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_StartMeetingTranscription.html](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_StartMeetingTranscription.html)API untuk memulai transkripsi rapat dengan menerapkan a ke rapat. `TranscriptionConfiguration` Pengontrol Amazon Chime SDK meneruskan konfigurasi ke rapat secara asinkron. Keberhasilan atau kegagalan memulai transkripsi rapat ditandai melalui pesan melalui Amazon Simple Notification Service (Amazon SNS) dan Amazon. EventBridge

**Memulai transkripsi**  
Contoh ini menunjukkan cara memulai transkripsi langsung dengan Amazon Transcribe.

```
POST /meetings/meetingId/transcription?operation=start HTTP/1.1 
Content-type: application/json
{
    "TranscriptionConfiguration": {
        "EngineTranscribeSettings": {
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_ResponseSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_ResponseSyntax)": "en-US",  
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_ResponseSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_ResponseSyntax)": "tag",
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax)": "profanity",
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax)": "lingo",
            "Region": "us-east-1"
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax)": true,  
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax)": "high",  
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax)": "PII",  
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax)": "PII",  
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax)": "ALL",  
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestSyntax)": "language-model"
        }
    }
}
```

Contoh ini menunjukkan cara memulai transkripsi langsung dengan Amazon Transcribe Medical.

```
POST /meetings/meetingId/transcription?operation=start HTTP/1.1 
Content-type: application/json
{  
    "TranscriptionConfiguration": {
        "EngineTranscribeMedicalSettings": {
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html)": "en-US",
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html)": "PRIMARYCARE",
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html)": "CONVERSATION",
            "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html)": "lingo",
            "Region": "us-east-1",
           "[https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html)": "PHI", 
        }
   }
}
```

`StartMeetingTranscription`— Memulai transkripsi untuk rapat.  
`meetingId`— ID rapat, dikembalikan oleh [CreateMeetingAPI](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_CreateMeeting.html#API_CreateMeeting_ResponseSyntax).  
`TranscriptionConfiguration`— Merangkum parameter untuk transkripsi langsung. Anda harus menentukan dengan tepat satu konfigurasi, `EngineTranscribeSettings` atau`EngineTranscribeMedicalSettings`.

`EngineTranscribeSettings`— Menentukan penggunaan Amazon Transcribe dan meneruskan pengaturannya ke. [https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestParameters](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartStreamTranscription.html#API_streaming_StartStreamTranscription_RequestParameters)  
`LanguageCode` – Wajib.  
`VocabularyFilterMethod` – Opsional.  
`VocabularyFilterName` – Opsional.  
`VocabularyName` – Opsional.  
`Region` – Opsional.  
`EnablePartialResultsStabilization` – Opsional.  
`PartialResultsStability` – Opsional.  
` ContentIdentificationType` – Opsional.  
`ContentRedactionType` – Opsional.  
`PiiEntityTypes ` – Opsional.  
`LanguageModelName` – Opsional.

`EngineTranscribeMedicalSettings`— Menentukan penggunaan Amazon Transcribe Medical dan meneruskan pengaturannya ke. [https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html#API_streaming_StartMedicalStreamTranscription_RequestParameters](https://docs.aws.amazon.com/transcribe/latest/dg/API_streaming_StartMedicalStreamTranscription.html#API_streaming_StartMedicalStreamTranscription_RequestParameters)   
`LanguageCode` – Wajib.  
`Speciality` – Wajib.  
`Type` – Wajib.  
`VocabularyName` – Opsional.  
`Region` – Opsional.  
` ContentIdentificationType` – Opsional.

**Respons**  
Amazon Transcribe dan Amazon Transcribe Medical mengambil tanggapan berikut:
+ `OK`(200) dengan tubuh kosong, jika Anda berhasil mendaftar `TranscriptionConfiguration` ke rapat.

**Pesan kesalahan**  
Amazon Transcribe dan Amazon Transcribe Medical menampilkan pesan galat berikut:
+ **BadRequestException (400):** Parameter input tidak sesuai dengan batasan layanan.
+ **ForbiddenException (403):** Klien secara permanen dilarang membuat permintaan.
+ **NotFoundException (404):** `meetingId` Tidak ada.
+ **ResourceLimitExceededException (400):** Permintaan melebihi batas sumber daya. Misalnya, terlalu banyak rapat mengaktifkan transkripsi langsung.
+ **ServiceFailureException (500):** Layanan mengalami kesalahan yang tidak terduga.
+ **ServiceUnavailableException (503):** Layanan saat ini tidak tersedia.
+ **ThrottledClientException (429):** Klien melebihi batas tingkat permintaannya.
+ **UnauthorizedClientException (401):** Klien saat ini tidak berwenang untuk membuat permintaan.

`StartMeetingTranscription`Memanggil untuk kedua kalinya memperbarui yang `TranscriptionConfiguration` diterapkan pada rapat.

**Menghentikan transkripsi**  
Anda menggunakan [https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_meeting-chime_StopMeetingTranscription.html](https://docs.aws.amazon.com/chime-sdk/latest/APIReference/API_meeting-chime_StopMeetingTranscription.html)API untuk menghapus transkripsi rapat tertentu `meetingID` dan akhir. `TranscriptionConfiguration` Mengakhiri rapat menghentikan transkripsi secara otomatis.

Contoh ini menunjukkan sintaks permintaan yang memanggil`StopMeetingTranscription`.

```
POST/meetings/meetingId/transcription?operation=stop HTTP/1.1
```

**Respons**  
Amazon Transcribe dan Amazon Transcribe Medical mengambil tanggapan berikut:
+ `OK`(200) dengan tubuh kosong, jika Anda berhasil menghapus `TranscriptionConfiguration` dari rapat.

**Pesan kesalahan**  
Amazon Transcribe dan Amazon Transcribe Medical menampilkan pesan galat berikut:
+ **BadRequestException (400):** Parameter input tidak sesuai dengan batasan layanan.
+ **ForbiddenException (403):** Klien secara permanen dilarang membuat permintaan.
+ **NotFoundException (404):** `meetingId` Tidak ada.
+ **ServiceFailureException (500):** Layanan mengalami kesalahan yang tidak terduga.
+ **ServiceUnavailableException (503):** Layanan saat ini tidak tersedia.
+ **ThrottledClientException (429):** Klien melebihi batas tingkat permintaannya.
+ **UnauthorizedClientException (401):** Klien saat ini tidak berwenang untuk membuat permintaan.