forked from vocodedev/vocode-core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump for prerelease * bumps to 0.1.112
- Loading branch information
Showing
11 changed files
with
1,219 additions
and
1,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.9-bullseye | ||
FROM python:3.11-bullseye | ||
|
||
# get portaudio and ffmpeg | ||
RUN apt-get update \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,9 @@ | ||
# client_backend | ||
|
||
## Docker | ||
|
||
1. Set up the configuration for your agent in `main.py`. | ||
2. Set up an .env file using the template | ||
|
||
``` | ||
cp .env.template .env | ||
``` | ||
|
||
Fill in your API keys into .env | ||
|
||
3. Build the Docker image | ||
|
||
```bash | ||
docker build -t vocode-client-backend . | ||
``` | ||
|
||
4. Run the image and forward the port. | ||
|
||
```bash | ||
docker run --env-file=.env -p 3000:3000 -t vocode-client-backend | ||
``` | ||
|
||
Now you have a client backend hosted at localhost:3000 to pass into the Vocode React SDK. You'll likely need to tunnel port 3000 to ngrok / host your server in order to use it in the React SDK. | ||
|
||
## Non-docker setup | ||
|
||
`main.py` just sets up a FastAPI server, so you can just run it with uvicorn: | ||
|
||
``` | ||
uvicorn main:app | ||
``` | ||
|
||
Note: building this with Docker is currently broken in 0.1.112 - we're planning an overhaul here, stay tuned! |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,11 @@ authors = ["Your Name <[email protected]>"] | |
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.9,<3.12" | ||
python = ">=3.11,<3.12" | ||
python-dotenv = "^1.0.1" | ||
vocode = { path = "../..", extras = [ | ||
vocode = { version = "0.1.112", extras = [ | ||
"all", | ||
], develop = true, python = ">=3.11,<3.12" } | ||
] } | ||
elevenlabs = "^1.2.2" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.9-bullseye | ||
FROM python:3.10-bullseye | ||
|
||
# get portaudio and ffmpeg | ||
RUN apt-get update \ | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,13 @@ authors = ["Your Name <[email protected]>"] | |
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.9,<3.12" | ||
python = ">=3.10,<3.12" | ||
pyngrok = "^7.1.6" | ||
python-dotenv = "^1.0.1" | ||
vocode = { path = "../..", extras = [ | ||
azure-cognitiveservices-speech = "^1.38.0" | ||
vocode = { version = "0.1.112", extras = [ | ||
"all", | ||
], develop = true, python = ">=3.11,<3.12" } | ||
]} | ||
|
||
|
||
[build-system] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "vocode" | ||
version = "0.1.112a0" | ||
version = "0.1.112" | ||
description = "The all-in-one voice SDK" | ||
authors = ["Ajay Raj <[email protected]>"] | ||
license = "MIT License" | ||
|