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

Add an example how to use transcribe with Ruby on Rails and Active Storage #520

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

Conversation

AndreyAzimov
Copy link

…rage

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?

@alexrudall
Copy link
Owner

Thanks @AndreyAzimov - can you share a bit more of the example - eg. how to get the temp_file from ActiveStorage?

response = client.audio.transcribe(
parameters: {
model: "whisper-1",
file: File.open(temp_file, "rb"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is temp_file supposed to be file?

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.

3 participants