OpenAI Whisper Speech to Text via PHP & JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2024

ความคิดเห็น • 20

  • @clarasampaio1175
    @clarasampaio1175 ปีที่แล้ว +2

    That's awesome. I was looking for something in js and php ! Thanks

  • @Stephan1231231
    @Stephan1231231 8 หลายเดือนก่อน +2

    Thanks a lot for the video and the code. Helped me a lot !

  • @codearabawy
    @codearabawy 8 วันที่ผ่านมา

    Thank you for the tutorial!
    Have you tried to do it as real-time streaming (ASR)? I'm stuck with NodeJS doing that. Seems like OpenAI API works only when the media recorder stops. I try to pass the audio chunks every 2 seconds, the first request succeed but the subsequent ones fail.

  • @rafaafeitos
    @rafaafeitos ปีที่แล้ว +1

    You saved my day! Thank you very much!

  • @TheGarageboyz
    @TheGarageboyz 8 หลายเดือนก่อน +1

    Nicely done. Explained well

  • @ambientspace9504
    @ambientspace9504 ปีที่แล้ว +1

    You’ve been the best so far
    But please
    Please can you show how to use google api for ocr through ph

    • @InteractiveUtopia
      @InteractiveUtopia  7 หลายเดือนก่อน

      Thank you for the suggestion, I will work on one! Contact me directly if you need help at InteractiveUtopia.com

  • @VitaliBohemian
    @VitaliBohemian 8 หลายเดือนก่อน +1

    hello, thank you for the video, it's really very userful. But maybe you can help - how can I specify the language of recognition, for example I need the Czech language to be recognized on whisperAI? Thank you very much for your help

    • @InteractiveUtopia
      @InteractiveUtopia  7 หลายเดือนก่อน +1

      You can do this by telling the languaje the input is in, look at platform.openai.com/docs/api-reference/audio/createTranscription

    • @VitaliBohemian
      @VitaliBohemian 7 หลายเดือนก่อน

      @@InteractiveUtopia thank you!

  • @joseluisvillegas9207
    @joseluisvillegas9207 5 หลายเดือนก่อน

    hello from Chile :) thanks for your video. im doing the test but i need to have a plan on open ia to do the test? "insufficient_quota" problem :/

  • @JuanBacchella
    @JuanBacchella ปีที่แล้ว +1

    Hello, thank you very much for the video. It has been very useful to me and I have learned a lot. After carrying out some tests, in local mode it works very well but if the tests are in a Hosting, a Json error appears in the console.
    ----
    Sending audio file to server...
    input.js:65 Error sending audio file to server: SyntaxError: Unexpected token 'S', "Sorry, the"... is not valid JSON
    at JSON.parse ()
    at input.js:59:44
    (anonymous) @input.js:65
    ----
    Do you know what it could be?
    Thank you so much

    • @ramon6456
      @ramon6456 ปีที่แล้ว +1

      Same problem here.
      Error sending audio file to server: SyntaxError: Unexpected token 'S', "Sorry, the"... is not valid JSON
      at JSON.parse ()
      Did you find out what the problem was?

    • @craigkarimalbasri4317
      @craigkarimalbasri4317 11 หลายเดือนก่อน +1

      probably need to make sure you change the OPENAPI_KEY.....worked for me.@@ramon6456

    • @activetask
      @activetask 11 หลายเดือนก่อน +1

      To solve this you may first change some of the "echo" of the whisper_send_data.php to some logging function, to understand what goes under. You may then set CURLOPT_SSL_VERIFYPEER to false (except if you are unsure about openai URL securization) ; then you'll learn on the Internets that the CURLfile constructor sometimes needs to have a canonical path, so you will change $target_file to realpath($target_file).
      Thanks to the initial author for these scripts !

    • @InteractiveUtopia
      @InteractiveUtopia  7 หลายเดือนก่อน

      Thank you !