Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Add Audio APIs #292

Merged
merged 3 commits into from
Jun 19, 2023
Merged

Add Audio APIs #292

merged 3 commits into from
Jun 19, 2023

Conversation

teerapap
Copy link
Contributor

@teerapap teerapap commented Jun 9, 2023

This pull request is to add Audio APIs.
https://platform.openai.com/docs/api-reference/audio/create

It supports two new APIs.

  • Create Transcription API
  • Create Translation API

This should fix #272 as well.

If this PR has any problems, please let me know.

Thanks

@jpagny
Copy link

jpagny commented Jun 10, 2023

Hello,

Oh ! I didn't see your Pull Request, I just finished adding the audio API. What a shame. It looks like we coded pretty much the same thing, the only difference being in the TranscriptionSegment. What source did you use to get this information? Because when I tested from Postman, I only got a return containing "text", nothing more.

That being said, I thank you for your modifications :-).

I'm not going to add another PR, but I'm still leaving my modifications here, just in case : https://github.com/jpagny/openai-java/tree/feature/add_audio_api

Have a nice day.

@teerapap
Copy link
Contributor Author

Hi @jpagny

I just did this PR two days ago. I guess it was bad timing. 😅

The response contains segments property and other properties when the request has response_format=verbose_json.

You can try it.

@TheoKanning TheoKanning merged commit 21ef7f0 into TheoKanning:main Jun 19, 2023
@TheoKanning
Copy link
Owner

Thank you so much!

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

Successfully merging this pull request may close these issues.

Audio Api
3 participants