Live transcription implementation on ReactJS app
See original GitHub issueWhat happened and what did you expect to happen?
I’m currently needing to implement a feature that will show the entire transcript during the meeting. I completed the first step which would be “Creating a Service-Linked Role for Amazon Chime Live Transcription” from this url (https://docs.aws.amazon.com/chime/latest/ag/using-service-linked-roles-transcription.html)
after that, as soon as the meeting starts I call this url -> meetings/${meetingIdFromAWS}/transcription?operation=start
that meetingIdFromAWS
is MeetingId returned from join?title=meetingId&name=name®ionregion
First problem:
in my local computer this url returns 404 not found meetings/${meetingIdFromAWS}/transcription?operation=start
, only on production this url works
Second problem:
even in production when I call this url and it returns 200(OK), the class Transcript
of this import always returns empty
import { Transcript } from 'amazon-chime-sdk-js';
const transcript = new Transcript();
console.log('transcript', transcript);
I’m kind of confused about the documentation, what would be the correct way to use this transcription feature
Have you reviewed our existing documentation?
Reproduction steps
npm run start
Amazon Chime SDK for JavaScript version
^2.17.0
What browsers are you seeing the problem on?
Chrome
Browser version
97.0.4692.99 64 bits
Meeting and Attendee ID Information.
No response
Browser console logs
none
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
@Brenerss I assume you were using the HTTP request to start the transcription service following this doc: https://docs.aws.amazon.com/chime/latest/dg/initiate-transcription.html
I’m not familiar with this part. However I checked our browser demo where it calls
StartMeetingTranscription
API to start the transcription service.Could you please follow below steps to start the transcription service and see if it helps?
Use either of the
chime
orchimeSDKMeetings
client. https://github.com/aws/amazon-chime-sdk-js/blob/db36d8a4191ad6fe58af68d51008c12a5b1286a9/demos/browser/server.js#L28-L38Use the above client to call
startMeetingTranscription()
API.client
in below code is eitherchimeSDKMeetings
orchime
.MeetingId
should beJoinInfo.Meeting.MeetingId
you got. https://github.com/aws/amazon-chime-sdk-js/blob/db36d8a4191ad6fe58af68d51008c12a5b1286a9/demos/browser/server.js#L239-L243@Brenerss For your second question:
According to our doc:
You got the response 200, basically it means you started the transcription service successfully. I assume the cause here is you used the wrong way to receive the transcription result.
According to our demo App implementation and the AWS doc:
You need to implement a transcript event dandler, and subscribe to transcript event:
No problem, please refer to our demo App implementation. This should be most useful.