thiwa
thiwa6mo ago

Handling Local Files with REST API Trigger for Whisper API

I'm developing a voice recognition feature in an Android app using Whisper API. Sending audio files directly to Whisper works fine, but I run into problems when routing them through Buildship's REST API trigger. I pass the audio file URL as speech_url, but the response from Whisper is consistently null.Does the REST API trigger in Buildship handle local files differently, or might I be missing a step? Any insights or troubleshooting tips would be greatly appreciated.
Solution:
Hi @thiwa, the files requires to be a publically accessible URL, you can upload it to BuildShip or generate a public URL of it by using the Generate Public URL node.
Jump to solution
2 Replies
Solution
Gaurav Chadha
Gaurav Chadha6mo ago
Hi @thiwa, the files requires to be a publically accessible URL, you can upload it to BuildShip or generate a public URL of it by using the Generate Public URL node.
Gaurav Chadha
Gaurav Chadha6mo ago
Then you can pass the URL as query or body to the Whisper node and it should return the correct response.
No description