{"id":28318642,"url":"https://github.com/sofianhw/elevenlabs-golang-wss","last_synced_at":"2026-06-20T01:31:30.122Z","repository":{"id":291607177,"uuid":"978172302","full_name":"sofianhw/elevenlabs-golang-wss","owner":"sofianhw","description":"Elevenlabs Golang Websocket implementation","archived":false,"fork":false,"pushed_at":"2025-05-05T15:32:02.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T18:49:05.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sofianhw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-05T15:21:46.000Z","updated_at":"2025-05-05T15:32:05.000Z","dependencies_parsed_at":"2025-05-05T16:46:02.272Z","dependency_job_id":null,"html_url":"https://github.com/sofianhw/elevenlabs-golang-wss","commit_stats":null,"previous_names":["sofianhw/elevenlabs-golang-wss"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sofianhw/elevenlabs-golang-wss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Felevenlabs-golang-wss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Felevenlabs-golang-wss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Felevenlabs-golang-wss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Felevenlabs-golang-wss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofianhw","download_url":"https://codeload.github.com/sofianhw/elevenlabs-golang-wss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2Felevenlabs-golang-wss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34554511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-25T08:11:15.261Z","updated_at":"2026-06-20T01:31:30.092Z","avatar_url":"https://github.com/sofianhw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ElevenLabs Golang WebSocket TTS Client\n\nThis project is a command-line tool written in Go for streaming text-to-speech (TTS) synthesis using the ElevenLabs API over WebSockets. It allows you to input text, send it to the ElevenLabs TTS service, and play back the resulting audio on your Mac.\n\n## Features\n\n- Interactive CLI for entering text lines\n- Streams audio using ElevenLabs' WebSocket API\n- Supports voice, model, stability, similarity, and speed parameters\n- Outputs audio as MP3 and plays it automatically (`afplay` on macOS)\n- Keep-alive and inactivity timeout handling\n\n## Requirements\n\n- Go 1.24+\n- macOS (uses `afplay` for playback)\n- [ElevenLabs API key](https://elevenlabs.io/)\n\n## Installation\n\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/yourusername/elevenlabs-golang-wss.git\n    cd elevenlabs-golang-wss\n    ```\n\n2. Install dependencies:\n    ```sh\n    go mod tidy\n    ```\n\n3. Build the binary:\n    ```sh\n    go build -o elevenlabs-wss\n    ```\n\n## Usage\n\n```sh\n./elevenlabs-wss -api-key YOUR_API_KEY -voice-id VOICE_ID [options]\n```\n\n### Options\n\n- `-api-key` (required): Your ElevenLabs API key\n- `-voice-id` (required): Voice ID to use\n- `-model-id`: TTS model to use (default: `eleven_flash_v2_5`)\n- `-stability`: Voice stability (0.0–1.0, default: 0.5)\n- `-similarity`: Similarity boost (0.0–1.0, default: 0.8)\n- `-speed`: Playback speed multiplier (default: 1.0)\n- `-timeout`: WebSocket inactivity timeout in seconds (default: 120, max: 180)\n\n### Example\n\n```sh\n./elevenlabs-wss -api-key YOUR_API_KEY -voice-id YOUR_VOICE_ID\n```\n\nYou will be prompted to enter lines of text. Type `done` to synthesize and play, or `exit` to quit.\n\n## File Structure\n\n- [`main.go`](main.go): Main application source code\n- [`go.mod`](go.mod): Go module definition\n- [`.gitignore`](.gitignore): Git ignore rules","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofianhw%2Felevenlabs-golang-wss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofianhw%2Felevenlabs-golang-wss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofianhw%2Felevenlabs-golang-wss/lists"}