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

Support for verbose_json for audio transcriptions #199

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

azzever
Copy link

@azzever azzever commented Apr 24, 2024

What

This pull request addresses a bug in the current implementation of the verbose_json option for OpenAI's audio transcription API. It also extends the AudioTranscriptionResult format to support the additional parameters returned when verbose_json is enabled, such as word-level and segment-level timestamps.

Why

The verbose_json option in OpenAI's audio transcription API provides valuable information for synchronizing the audio with the transcription. By fixing the bug and extending the AudioTranscriptionResult format, developers can easily access and utilize the timestamp data and other parameters to create synchronized audio-transcription experiences.

Affected Areas

audio/transcription:

  • The AudioTranscriptionResult format has been extended with optional values to accommodate the additional data provided by the verbose_json option.
  • New parameter timestampGranularities was added to AudioTranscriptionQuery

Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@azzever azzever changed the title added support for verbose_json for audio transcriptions (words and ti… Support for verbose_json for audio transcriptions Apr 24, 2024
@joeldrotleff
Copy link

Thank you for adding this, very helpful. Hopefully it gets merged soon

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

Successfully merging this pull request may close these issues.

2 participants