Giter Site home page Giter Site logo

Comments (5)

johndpope avatar johndpope commented on August 26, 2024

seems like you need to raise a ticket with the library that is used openai-whisper ?
https://github.com/openai/whisper

from realchar.

pycui avatar pycui commented on August 26, 2024

If seems related to the network situation with proxy/IP block thing. Would suggest to test if you can directly connect to whisper API, e.g. like this

curl https://api.openai.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F model="whisper-1" \
  -F file="@/path/to/file/openai.mp3"

If this doesn't work, it means you network has issue and can't connect to OpenAI

from realchar.

pycui avatar pycui commented on August 26, 2024

Closing for now, feel free to reopen.

from realchar.

Kevin-free avatar Kevin-free commented on August 26, 2024

If seems related to the network situation with proxy/IP block thing. Would suggest to test if you can directly connect to whisper API, e.g. like this

curl https://api.openai.com/v1/audio/transcriptions \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F model="whisper-1" \
  -F file="@/path/to/file/openai.mp3"

If this doesn't work, it means you network has issue and can't connect to OpenAI

I also encountered the same problem, executing this command returned: curl: (26) Failed to open/read local data from file/application.

Does "@/path/to/file/openai.mp3" need to be modified? Or how to do it? Thanks!

from realchar.

Kevin-free avatar Kevin-free commented on August 26, 2024

@pycui Thanks for the guidance, I tried it and the execution result is as follows:

> curl https://api.openai.com/v1/audio/transcriptions\
   -H "Authorization: Bearer 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" \
   -H "Content-Type: multipart/form-data" \
   -F model="whisper-1" \
   -F file="/Users/kevin/1-GR personal/16-XMDM project code/161-WDXM my project/1618-RealChar/realtime_ai_character/audio/training_data/raiden/4.mp3"
curl: (28) Failed to connect to api.openai.com port 443 after 75260 ms: Operation timed out

What should I do?

from realchar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.