{"id":16834704,"url":"https://github.com/mscdex/speaky","last_synced_at":"2025-04-11T04:33:27.924Z","repository":{"id":57367132,"uuid":"54274083","full_name":"mscdex/speaky","owner":"mscdex","description":"A binding to the SVOX Pico engine (libttspico) for performing text-to-speech","archived":false,"fork":false,"pushed_at":"2016-03-19T16:32:10.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T13:13:16.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/mscdex.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}},"created_at":"2016-03-19T15:56:22.000Z","updated_at":"2023-05-14T04:02:29.000Z","dependencies_parsed_at":"2022-08-23T20:10:13.976Z","dependency_job_id":null,"html_url":"https://github.com/mscdex/speaky","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Fspeaky","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Fspeaky/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Fspeaky/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mscdex%2Fspeaky/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mscdex","download_url":"https://codeload.github.com/mscdex/speaky/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345203,"owners_count":21088231,"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":[],"created_at":"2024-10-13T12:07:28.751Z","updated_at":"2025-04-11T04:33:27.862Z","avatar_url":"https://github.com/mscdex.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nDescription\n===========\n\nA binding to the SVOX Pico engine (libttspico) for [node.js](http://nodejs.org/) for performing text-to-speech.\n\n[![Build Status](https://travis-ci.org/mscdex/speaky.svg?branch=master)](https://travis-ci.org/mscdex/speaky)\n\n\nRequirements\n============\n\n* [node.js](http://nodejs.org/) -- v0.10.0 or newer\n* libttspico* packages -- Tested on Ubuntu with version 1.0+git20130326-3\n\n\nInstall\n=======\n\n    npm install speaky\n\n\nExample\n=======\n\n```javascript\nvar fs = require('fs');\n\nvar Speaky = require('speaky');\n\n// Use the en-US voice that comes with the libttspico-data package.\n// The order of the 'ta' and 'sg' files does not matter, as long as both types\n// are passed to the constructor.\n// 'ta' === 'text analysis'\n// 'sg' === 'signal generation'\n// The path to these languages files may vary depending on your OS distro.\nvar speaky = new Speaky('/usr/share/pico/lang/en-US_ta.bin',\n                        '/usr/share/pico/lang/en-US_lh0_sg.bin');\n\nspeaky.speak('node j s rules!')\n      .pipe(fs.createWriteStream('out.pcm'));\nspeaky.speak('Help, I am trapped in a computer!')\n      .pipe(fs.createWriteStream('out2.pcm'));\n\n// Audio data is formatted as raw 16KHz, 16-bit signed integer PCM.\n// The audio can be played via sox with:\n//   play -t raw -r 16000 -b 16 -c 1 -e signed-integer out.pcm\n```\n\n\nAPI\n===\n\nSpeaky methods\n--------------\n\n* **(constructor)**(\u003c _String_ \u003etaPath, \u003c _String_ \u003esgPath) - Creates and returns a new Speaky instance that is set to use the voice described by the voice files at `taPath` and `sgPath`.\n\n* **speak**(\u003c _String_ \u003etext) - _ReadableStream_ - Enqueues `text` to be synthesized to raw, 16KHz, 16-bit signed integer PCM audio samples. The Readable stream returned will receive this audio data as it is generated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscdex%2Fspeaky","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmscdex%2Fspeaky","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmscdex%2Fspeaky/lists"}