

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 수신된 Amazon Chime SDK 라이브 트랜스크립트 이벤트 처리
<a name="delivery-examples"></a>

다음 예제에서는 수신된 `TranscriptEvent`를 처리하는 방법을 보여줍니다.

**참고**  
정확한 출력은 개인의 말하는 속도와 멈추는 시점 등 여러 요인에 따라 달라집니다.

## 예제 1: StartMeetingTranscription
<a name="example-1"></a>

이 예제는 일반적인 `StartMeetingTranscription` 작업을 보여줍니다.

```
meeting.StartMeetingTranscription(
    { EngineTranscribeSettings: { Languagecode: ‘{{en-US}}’ } } );
```

작업은 `TranscriptEvent`를 생성합니다.

```
{   
    status: {        
        type: 'started',        
        eventTimeMs: {{1620118800000}},        
        transcriptionConfig: {                    
            LanguageCode: '{{en-US}}'        
        }    
    }
}
```

## 예제 2: 일부 대화 기록 결과
<a name="example-2"></a>

이 예제에서 한 참석자는 “The quick brown fox jumps over the lazy dog.”라고 말합니다. 이 예시에서 `isPartial` 값은 `true`입니다. 메시지를 자세히 살펴보면 시스템에서 “fox”라는 단어를 “facts”로 처리했음을 알 수 있습니다. 시스템은 동일한 `resultId`를 사용하여 대화 기록을 업데이트합니다.

```
{
    transcript: {
        results: [{
            resultId:"1",                               isPartial: true,
            startTimeMs: {{1620118800000}},                 endTimeMs: {{1620118801000}},
            alternatives: [{
                items:[{
                    type:        'pronunciation',
                    startTimeMs: {{1620118800000}},         endTimeMs: {{1620118800200}},
                    attendee: { attendeeId: "1",        externalUserId: "A"},
                    content: "the",                     vocabularyFilterMatch: false
                },
                {
                    type:        'pronunciation',
                    startTimeMs: {{1620118800200}},          endTimeMs: {{1620118800400}},
                    attendee: { attendeeId: "1",         externalUserId: "A" },
                    content:"quick",                     vocabularyFilterMatch: false
                },
                {
                    type:'pronunciation',
                    startTimeMs: {{1620118800400}},          endTimeMs: {{1620118800750}},
                    attendee: { attendeeId: "1",         externalUserId: "A" },
                    content:"brown",                     vocabularyFilterMatch: false
                },
                {
                    type:'pronunciation',
                    startTimeMs: {{1620118800750}},          endTimeMs: {{1620118801000}},
                    attendee:{ attendeeId: "1",          externalUserId: "A" },
                    content:"facts",                     vocabularyFilterMatch: false
                },
                {
                    type:'punctuation',
                    startTimeMs: {{1620118801000}},          endTimeMs: {{1620118801500}},
                    attendee:{ attendeeId: "1",          externalUserId: "A" },
                    content:    ",",                     vocabularyFilterMatch: false
                }]
            }]
        }]
    }
}
```

## 예제 3: 최종 대화 기록 결과
<a name="example-3"></a>

일부 대화 기록의 이벤트에서 시스템은 구문을 다시 처리합니다. 이 예제의 `isPartial` 값은 `false` 이고 메시지에는 “facts” 대신 “fox”가 포함되어 있습니다. 시스템에서 동일한 ID를 사용하여 메시지를 다시 발행합니다.

```
{
    transcript: {
        results: [{
            resultId:"1",                                isPartial: false,
            startTimeMs: {{1620118800000}},                  endTimeMs: {{1620118801000}},
            alternatives: [{
                items:[{
                    type:        'pronunciation',
                    startTimeMs: {{1620118800000}},          endTimeMs: {{1620118800200}},
                    attendee: { attendeeId: "1",         externalUserId: "A"},
                    content: "the",                      vocabularyFilterMatch: false
                },
                {
                    type:        'pronunciation',
                    startTimeMs: {{1620118800200}},          endTimeMs: {{1620118800400}},
                    attendee: { attendeeId: "1",         externalUserId: "A" },
                    content:"quick",                     vocabularyFilterMatch: false
                },
                {
                    type:'pronunciation',
                    startTimeMs: {{1620118800400}},          endTimeMs: {{1620118800750}},
                    attendee: { attendeeId: "1",         externalUserId: "A" },
                    content:"brown",                     vocabularyFilterMatch: false
                },
                {
                    type:'pronunciation',
                    startTimeMs: {{1620118800750}},          endTimeMs: {{1620118801000}},
                    attendee: { attendeeId: "1",          externalUserId: "A" },
                    content:"fox",                       vocabularyFilterMatch: false
                },
                {
                    type:'punctuation',
                    startTimeMs: {{1620118801000}},          endTimeMs: {{1620118801500}},
                    attendee: { attendeeId: "1",          externalUserId: "A" },
                    content:    ",",                     vocabularyFilterMatch: false
                }]
            }]
        }]
    }
}
```