AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

Added speech support from agent running in docker in linux

Open rame0 opened this issue 2 years ago • 1 comments

Background

Speech does not work when running on Docker container.

Changes

  • An additional Dockerfile (speech_linux.Dockerfile) has been added to provide support for audio output from a container.
  • Changed docker-compose.yml to allow for a custom Dockerfile.
  • Added volumes to docker-compose.yml that bind the host sound to the container.

Documentation

Added comments to docker-compose.yml

Test Plan

Tested on Manjaro Linux.

PR Quality Checklist

  • [x] My pull request is atomic and focuses on a single change.
  • [x] I have thoroughly tested my changes with multiple different prompts.
  • [x] I have considered potential risks and mitigations for my changes.
  • [x] I have documented my changes clearly and comprehensively.
  • [x] I have not snuck in any "extra" small tweaks changes

No tests added because the actual code doesn't change.

rame0 avatar Apr 23 '23 09:04 rame0

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

github-actions[bot] avatar Apr 23 '23 09:04 github-actions[bot]

I think we should find a better way to manage this than uncommenting Dockerfile lines.

k-boikov avatar Apr 23 '23 21:04 k-boikov

I think we should find a better way to manage this than uncommenting Dockerfile lines.

Agree, but that what I come up with so far. Will try to find better solution.

The reasons of uncommenting in docker-compose.yml right now is

  1. to have different Dokckerfiles, because, I think (can't test) this sound solution will not work on Windows
  2. to still have Dockerfile without sound, because it creates smaller image

The solution might be: creating second service (let's say auto-gpt-speek) in docker-compose.yml with settings for sound. And run like that:

docker-compose run --build --rm auto-gpt-speek

rame0 avatar Apr 24 '23 05:04 rame0

This is a mass message from the AutoGPT core team. Our apologies for the ongoing delay in processing PRs. This is because we are re-architecting the AutoGPT core!

For more details (and for infor on joining our Discord), please refer to: https://github.com/Significant-Gravitas/Auto-GPT/wiki/Architecting

p-i- avatar May 05 '23 00:05 p-i-

Take a look at: https://docs.docker.com/compose/profiles/

ntindle avatar Jun 14 '23 22:06 ntindle

Since there has been no activity in the past 2+ months, I'm closing this as stale. Feel free to bump, comment here or ping me (on discord) if you want to fix up this PR or if you want to discuss further.

Pwuts avatar Jul 07 '23 06:07 Pwuts