This article demonstrates converting a text message to audio using the Google Text-to-Speech app and then forwarding it to a friend/colleague on Slack
What you'll need:
Skill level: Intermediate
Time required: 4 minutes
- Scheduler by Quickwork as a trigger--for triggering the journey
- Google Text-to-Speech: Action
- Slack: Action
Configuring the trigger
- Under the Event section, choose the Scheduler by Quickwork app from the drop-down menu in the Apps list present right below the New Trigger button.
- Select the trigger event, New scheduled event, from the drop-down menu in the Triggers list.
- Set the Interval as per your choice based on how often you want to run the journey.
- Set the date and time of your choice in the Start at field and keep the Custom payload field empty:
Configuring Google Text-to-Speech action
- Under the Steps section, click on the Simple Action button and then choose the Google Text-to-Speech app from the drop-down menu in the Apps list.
- Select the Text synthesize action from the drop-down menu in the Actions list.
- Click the Link an account button to authorize your Google account. You can select an existing connection if you have one.
- Upon successful connection establishment, input fields will open up for you.
- In the Text input field, specify the text that you want to get converted into audio. E.g., Hello, how are you?
- Select the audio language of your choice from the Language drop-down field.
- Similarly, select the gender for the audio:
Configuring Slack action
- Click the Add a step button (+ icon), click Simple Action, and then select Slack app from the drop-down menu in the Apps field.
- Select the Send message to a user action from the drop-down menu in the Actions field.
- Click the Link an account button to authorize your Slack account. You can select an existing connection if you have one.
- Upon successful connection establishment, input fields will open up for you.
- In the Username input field, select the name of a user to whom you want to send the voice message.
- As an input to the Message field, pass the Url data pill from Data Tree Output of Google Text-to-Speech: Text synthesize:
- Selecting Yes in the Send the message as a user or a bot? field sends a message to your friend/colleague on behalf of you and not as a bot. If this field is kept empty, no message will be sent:
Executing the journey
Save the changes in a journey and click the Save & Start button. Now, go to your Slack account and navigate to the chat window of the user that you have mentioned in the Slack action:
Open this .mp3 file in a new tab of the web browser:
You can now clearly hear the audio of your text message.
Comments
0 comments
Please sign in to leave a comment.