Async Google Cloud Speech-to-text has no results

To get helpful responses

I’m doing a Telegram bot that transcribes voice messages I send to him, using Google Cloud Speech-to-text API. I’m using the async method as most messages are more than a minute long. It kind of works, it doesn’t raise any errors but I get no results.

Include screenshots of

Welcome to the Make community!

That’s because that module is “Get the State of …” and not “Get the Result” (this module doesn’t exist)

You can submit a suggestion to create such a module to the Idea exchange, under App improvement ideas.

Don’t forget to search for it first, just in case someone already suggested it, so that you don’t end up creating a duplicate.
Screenshot_2024-01-17_130153

You might be able to find the result in the same Cloud Storage container you uploaded the original file to.

Give it a go and let us know if it works!

2 Likes

It seems that the sample rate in Hertz has to be exact, it doesn’t auto downsample. Changing the sample rate worked.

3 Likes

Heya there :wave:

Wow! I am impressed by the fact you were able to crack this with the help of @samliew! It is truly great to see Makers improve and get more proficient at using Make. :smile:

Thanks a lot for keeping the community in mind and coming back here with additional information and solution.

Great job and keep it up!

2 Likes

I ended up quite happy with the result

image

I attach the blueprint in case anyone wants to use it. Instead of sleeping for 2 minutes or whatever. First, it sleeps for a while, and then it enters a loop where it checks if it’s finished. When it’s finished, it merges all the responses into one Telegram message.

Remember to change the first filter before the first router, it only allows messages from my username to avoid anyone from using the bot.

blueprint.json (80.0 KB)

3 Likes