Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to parse RTT onStreamMessage callback to get text #1447

Open
Nirav-Sanghani opened this issue Aug 14, 2023 · 2 comments
Open

how to parse RTT onStreamMessage callback to get text #1447

Nirav-Sanghani opened this issue Aug 14, 2023 · 2 comments
Assignees

Comments

@Nirav-Sanghani
Copy link

Nirav-Sanghani commented Aug 14, 2023

in this doc

https://docs-beta.agora.io/en/real-time-transcription/get-started/#use-google-protobuf-generator-to-parse-text-data

it is mention that
"When transcription text is available, your app receives the onStreamMessage callback."
i am getting call back but it is not clearly mention how to parse callback to get text. i have generated proto file and also generated javascript file form .proto file but do not know how to handle callback

i am working on react native if you have any example code then i need it urgent as our broadcast application is live but caption is missing.

@EkaanshArora
Copy link
Contributor

Hey here's an example, does this help?

@Nirav-Sanghani
Copy link
Author

@EkaanshArora i am getting garbage value in "data.toString()"

below is log for text i am getting when speaking hello testing is there any way to remove garbage value

Receive from uid:12345
StreamId 49153: � H�vR
hello testingR
.`�j
transcribezen-US

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants