{"id":17531119,"url":"https://github.com/milosgajdos/go-playht","last_synced_at":"2025-04-23T20:24:40.884Z","repository":{"id":230602514,"uuid":"779762992","full_name":"milosgajdos/go-playht","owner":"milosgajdos","description":"PlayHT API client Go module","archived":false,"fork":false,"pushed_at":"2025-04-17T06:46:25.000Z","size":106,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T21:18:44.592Z","etag":null,"topics":["ai","go","golang","speech-synthesis","text-to-speech","tts","tts-api"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/milosgajdos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-03-30T18:04:30.000Z","updated_at":"2025-04-17T06:46:27.000Z","dependencies_parsed_at":"2024-05-18T22:21:57.112Z","dependency_job_id":"abeeb0da-8470-4b54-9e7f-92c432ac528c","html_url":"https://github.com/milosgajdos/go-playht","commit_stats":null,"previous_names":["milosgajdos/go-playht"],"tags_count":5,"template":false,"template_full_name":"milosgajdos/go-repo-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milosgajdos%2Fgo-playht","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milosgajdos%2Fgo-playht/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milosgajdos%2Fgo-playht/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milosgajdos%2Fgo-playht/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milosgajdos","download_url":"https://codeload.github.com/milosgajdos/go-playht/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250507308,"owners_count":21441959,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ai","go","golang","speech-synthesis","text-to-speech","tts","tts-api"],"created_at":"2024-10-20T17:22:55.887Z","updated_at":"2025-04-23T20:24:40.863Z","avatar_url":"https://github.com/milosgajdos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-playht\n\n[![Build Status](https://github.com/milosgajdos/go-playht/actions/workflows/ci.yaml/badge.svg?branch=main)](https://github.com/milosgajdos/go-playht/actions?query=workflow%3ACI)\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/github.com/milosgajdos/go-playht)\n[![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nUnofficial Go module for [play.ht](https://play.ht/) API client.\n\nThe official [play.ht](https://play.ht) API documentation, upon which this Go module has been built, can be found [here](https://docs.play.ht/reference).\n\nIn order to use this Go module you must create an account with [play.ht](https://play.ht) and generate API secret and retrieve your User ID. See the official docs [here](https://docs.play.ht/reference/api-authentication).\n\n# Get started\n\nGet the module\n```shell\ngo get ./...\n```\n\nRun tests:\n```shell\ngo test -v ./...\n```\n\nThere are a few code samples available in the [examples](./examples) directory so please do have a look. They could give you some idea about how to use this Go module.\n\n\u003e [!IMPORTANT]\n\u003e Before you attempt to run the samples you must set a couple of environment variables\n\u003e These are automatically read by the client when it gets created; you can override them in your own code.\n\n* `PLAYHT_SECRET_KEY`: API secret key\n* `PLAYHT_USER_ID`: Play.HT User ID\n\n## Nix\n\nThere is a [Nix flake](https://nixos.wiki/wiki/Flakes) file vailable which lets you work on the Go module using nix.\n\nJust run the following command and you are in the business:\n```shell\nnix develop\n```\n\n# Basics\n\nThere are two ways to create audio/speech from the text using the API:\n* Job: audio generation is done in async; when you create a job you can monitor its progress via [SSE](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events)\n* Stream: a real-time audio stream available immediately as soon as the stream has been created via the API\n\nThe API also allows you to clone a voice using a small sample of limited size. See the [docs](https://docs.play.ht/reference/api-create-instant-voice-clone).\n\n\u003e [!NOTE]\n\u003e the proto code was generated by running `protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative proto/api.proto`\n\n# TODO\n\n* [ ] Lease refresh for gRPC streaming\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilosgajdos%2Fgo-playht","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilosgajdos%2Fgo-playht","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilosgajdos%2Fgo-playht/lists"}