Skip to content

Commit 48f11f2

Browse files
chore: change default TTS server port from 8000 to 8765 (#815)
Changes the default TTS server port from 8000 to 8765 to prevent common conflicts with other development servers that typically use port 8000. This affects: - scripts/tts_server.py: Default port option - gptme/tools/tts.py: Client port configuration and comment Co-authored-by: Erik Bjäreholt <erik@bjareho.lt>
1 parent 6345f0c commit 48f11f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gptme/tools/tts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
log = logging.getLogger(__name__)
4747

4848
host = "localhost"
49-
port = 8000
49+
port = 8765
5050

5151
# Check for TTS-specific imports
5252
has_tts_imports = False
@@ -65,7 +65,7 @@ def is_available() -> bool:
6565
# console.log("TTS tool not available: missing dependencies")
6666
return False
6767

68-
# available if a server is running on localhost:8000
68+
# available if a server is running on localhost:8765
6969
server_available = (
7070
socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect_ex((host, port)) == 0
7171
)

scripts/tts_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ async def text_to_speech(
302302

303303

304304
@click.command()
305-
@click.option("--port", default=8000, help="Port to run the server on")
305+
@click.option("--port", default=8765, help="Port to run the server on")
306306
@click.option("--host", default="127.0.0.1", help="Host to run the server on")
307307
@click.option(
308308
"--backend",

0 commit comments

Comments
 (0)