ALTERYX INSPIRE | Join us this May for for a multi-day virtual analytics + data science experience like no other! Register Now

Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.

Speech to Text & Translate Tool

fajar_wimar
6 - Meteoroid

Hi all.


In this post, I want to share tools that can recognize speech from audio file to text and then translate into other languages.

 

We don't think it's easy to find a custom speech recognition tool at Alteryx. So, me and the team (special thanks to @wellyLiyanto) created this potential tool using the Google service API in Python.

 

In the attachment, you will get two tools: Speech to Text & Translate Tool, like this:

sttt.jpg

 

 

 

 

 

 

1. Speech to Text

 

This tools is developed by Python Code using Google Speech to Text API which can be seen in the following documentation

https://cloud.google.com/speech-to-text/docs/libraries

 

 

Speech to Text.jpg

 

 

 

 

 

 

 

 

 

 

 

 

Inside the tool, you need to specify :

 

    a. client_secret.json

This is a Google Service Account Credentials JSON file. Detailed information on how to create this JSON file can be seen in the following post :

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/GCS-Upload-And-Download-Tools/td-p/554...

    b. Bucket Name

Enter the bucket name of Google Cloud Storage Platform which is used to store audio files.

    c. Language

Enter the language used in the audio speech file.

    d. File Path (From Local)

Find the speech audio file that will be recognized. In this option, Your file will be uploaded into Google Cloud Storage and deleted automatically.

    e. Blob Name (From GCS)

Specify the blob name of the speech audio file from your google cloud storage. In this option, the API will recognize your speech audio file directly from your GCS platform.

 

 

2. Translate Tool

 

Translate.jpg

 

 

 

 

 

 

In the Translate Tool, you just need to specify the source and destination language. Source language is an optional, you can choose None to detect your transcript language automatically.

 

Thank you!

fishcake
5 - Atom

Hi fajar_wimar,

 

Thank you so much for the great tool! I came across your tool when searching for something handy that can translate other languages to English.

So the step 2) of your package is more applicable in my case - I downloaded it and was able to get it run without error/warning - but the weird thing is that there is no output out of the tool. Not sure if I miss out anything in the configuration?

 

Here I am attaching a sample workflow that takes your translate tool. Thank you!

DavidSweenor
Alteryx
Alteryx

This is great, I'm curious on what use cases  you are using this for.  Thoughts?

aleja_ortegon
5 - Atom

Hola, estoy intentando seguir el proceso pero el link con los pasos para crear el archivo json no me funciona, podrías ayudarme?

Labels