ExecuteCommand Automate

ExecuteCommand Automate enables users to effortlessly run a Python script with customizable text and voice inputs, followed by playing the generated audio file. This manual-trigger workflow streamlines the process of voice generation, enhancing productivity and simplifying audio output tasks.

7/8/2025
4 nodes
Simple
manualsimpleexecutecommandreadbinaryfilesfilesstorage
Categories:
Manual TriggeredSimple Workflow
Integrations:
ExecuteCommandReadBinaryFiles

Target Audience

  • Developers looking to automate Python script execution.
    - Content Creators needing to generate audio from text.
    - Individuals who want to streamline their workflow with manual triggers.
    - Teams requiring integration of file reading and command execution in their processes.
  • Problem Solved

    This workflow automates the process of executing a Python script to convert text into audio, allowing users to efficiently generate sound files without manual intervention. It addresses the need for a simple, repeatable method to create audio content from text inputs, enhancing productivity and reducing errors in manual execution.

    Workflow Steps

  • Manual Trigger: The workflow starts with a manual trigger, allowing users to initiate the process at their convenience.
    2. Passing Variables: Next, the workflow sets the necessary variables, specifically the voice type and text to be converted. In this case, it uses "af_sarah" as the voice and "Hello world!" as the text.
    3. Run Python Script: The workflow then runs a Python script located at C:\KOKORO\voicegen.py, passing the specified text and voice as arguments. This script is responsible for generating the audio file.
    4. Play Sound: Finally, the workflow reads and plays the generated audio file D:/output.mp3, allowing users to hear the output immediately.
  • Customization Guide

  • Users can modify the Python script path in the Run python script node to point to their specific script location.
    - To change the text or voice, users can edit the JSON output in the Passing variables node, adjusting the "voice" and "text" fields as needed.
    - The audio file path in the Play sound node can be changed to point to a different audio file or location.
    - Additional nodes can be added for further processing, such as sending the audio file via email or uploading it to cloud storage.