{"id":19554149,"url":"https://github.com/revdotcom/revai-go","last_synced_at":"2026-01-12T00:42:40.837Z","repository":{"id":37798043,"uuid":"259509688","full_name":"revdotcom/revai-go","owner":"revdotcom","description":"Rev.ai golang client","archived":false,"fork":false,"pushed_at":"2024-02-26T19:54:45.000Z","size":561,"stargazers_count":21,"open_issues_count":6,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-06-20T11:07:09.293Z","etag":null,"topics":["client","golang","http-cl","rev-ai","revai"],"latest_commit_sha":null,"homepage":"https://www.rev.ai/docs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/revdotcom.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}},"created_at":"2020-04-28T02:26:23.000Z","updated_at":"2023-09-19T15:06:52.000Z","dependencies_parsed_at":"2024-06-20T10:17:25.782Z","dependency_job_id":"2cc18b45-8d3f-4c1d-a202-12a22af0c843","html_url":"https://github.com/revdotcom/revai-go","commit_stats":null,"previous_names":["oriiolabs/revai-go","threeaccents/revai-go"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revdotcom%2Frevai-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revdotcom%2Frevai-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revdotcom%2Frevai-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/revdotcom%2Frevai-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/revdotcom","download_url":"https://codeload.github.com/revdotcom/revai-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224047630,"owners_count":17246862,"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":["client","golang","http-cl","rev-ai","revai"],"created_at":"2024-11-11T04:26:05.439Z","updated_at":"2026-01-12T00:42:40.831Z","avatar_url":"https://github.com/revdotcom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Rev.ai \n[![Go Report Card](https://goreportcard.com/badge/github.com/threeaccents/revai-go)](https://goreportcard.com/report/github.com/threeaccents/revai-go)\n[![GoDoc](http://img.shields.io/badge/godoc-reference-blue.svg)](http://godoc.org/github.com/threeaccents/revai-go)\n\nA [Rev.ai](https://rev.ai) Go client library.\n\n## Installation\n\nInstall revai-go with:\n\n```sh\ngo get -u github.com/threeaccents/revai-go\n```\n\nThen, import it using:\n\n``` go\nimport (\n    \"github.com/threeaccents/revai-go\"\n)\n```\n\n## Documentation\n\nFor details on all the functionality in this library, see the [GoDoc](http://godoc.org/github.com/threeaccents/revai-go)\ndocumentation.\n\nBelow are a few simple examples:\n\n### New Client\n```go\n// default client\nc := revai.NewClient(\"API-KEY\")\n```\n\n### New Client With Options\n```go\nhttpClient := \u0026http.Client{\n    Timeout: 30 * time.Second,\n}\n\nc := revai.NewClient(\n    \"API_KEY\",\n    revai.HTTPClient(httpClient),\n    revai.UserAgent(\"my-user-agent\"),\n)\n```\n\n### Submit Local File Job\n\n```go\nparams := \u0026revai.NewFileJobParams{\n\tMedia:    f, // some io.Reader\n\tFilename: f.Name(),\n}\n\nctx := context.Background()\n\njob, err := c.Job.SubmitFile(ctx, params)\n// handle err\n\nfmt.Println(\"status\", job.Status)\n```\n\n### Submit Url Job\n\n```go\nconst mediaURL = \"https://support.rev.com/hc/en-us/article_attachments/200043975/FTC_Sample_1_-_Single.mp3\"\n\nparams := \u0026revai.NewURLJobParams{\n    MediaURL: mediaURL, \n}\n\nctx := context.Background()\n\njob, err := c.Job.SubmitURL(ctx, params)\n// handle err\n\nfmt.Println(\"status\", job.Status)\n```\n\n### Caption\n\n```go\nparams := \u0026revai.GetCaptionParams{\n\tJobID: \"job-id\"\n}\n\nctx := context.Background()\n\ncaption, err := c.Caption.Get(ctx, params)\n// error check\n\nfmt.Println(\"srt caption\", caption.Value)\n```\n\n### Account\n\n```go\nctx := context.Background()\n\naccount, err := c.Account.Get(ctx)\n// error check\n\nfmt.Println(\"balance\", account.BalanceSeconds)\n```\n\n### Stream\n[streaming example](examples/streaming/stream.go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevdotcom%2Frevai-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frevdotcom%2Frevai-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frevdotcom%2Frevai-go/lists"}