Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add audio transcription to command execution by field #1083

Merged
merged 4 commits into from
Jan 6, 2024

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Jan 6, 2024

Add audio transcription to command execution by field

The variables is_m4a_audio and is_wav_audio can be used to target fields in command execution that are populated with base64 audio that needs transcribed to text.

Example usage

from agixtsdk import AGiXTSDK

sdk = AGiXTSDK( base_uri="http://localhost:7437", api_key="")
base64_audio = get_base64_audio("Today has been a good day!")

response = sdk.execute_command(
    agent_name="gpt4free",
    command_name="Write to File",
    command_args={
        "filename": "notes.txt"
        "text": base64_audio,
        "is_m4a_audio": "text",
    },
    conversation_name="Test Conversation",
)

print(response)

@Josh-XT Josh-XT merged commit 1d21606 into main Jan 6, 2024
3 checks passed
@Josh-XT Josh-XT deleted the Add-audio-transcription-to-command-execution-by-field branch January 6, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant