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

Feature request: Transcription of conversation #7

Open
jakeatmsft opened this issue Oct 2, 2024 · 4 comments
Open

Feature request: Transcription of conversation #7

jakeatmsft opened this issue Oct 2, 2024 · 4 comments

Comments

@jakeatmsft
Copy link

Is there anyway to add transcript to the demo?

@chuwik
Copy link
Collaborator

chuwik commented Oct 2, 2024

It's not currently displayed in the app, but you have the hooks ready to plug it in.

If you want a transcript of the user input audio:

  • useRealTime takes a enableInputAudioTranscription param, pass true
  • useRealTime takes a onReceivedInputAudioTranscriptionCompleted param, pass a function that decides what to do with the message.

If you want a transcript of the responses:

  • useRealTime takes a onReceivedResponseDone param, pass a function that decides what to do with the message. Checkout ResponseDone in types.ts to see what it looks like.

I recommend you hack these together in App.tsx with simple console.log to start, then go from there.

We have plans to surface these plus the grounding data in a 'transcript' view, but no ETA.

@chuwik chuwik closed this as completed Oct 2, 2024
@jakeatmsft
Copy link
Author

jakeatmsft commented Oct 21, 2024

This code has been implemented in my fork: https://github.com/jakeatmsft/promptflow_patterns/blob/main/voice_app/app/frontend/src/App.tsx

@pamelafox
Copy link
Collaborator

Thanks @jakeatmsft for sharing! I'm re-opening this issue as it's a common request. @chuwik says that we also want a way to link the transcript to the grounding files ideally, for a full solution.

@chuwik
Copy link
Collaborator

chuwik commented Nov 1, 2024

#44 PR in review adding this functionality

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