{"id":23338396,"url":"https://github.com/abhirockzz/fn-text2speech","last_synced_at":"2025-10-28T17:31:13.846Z","repository":{"id":79125032,"uuid":"167177379","full_name":"abhirockzz/fn-text2speech","owner":"abhirockzz","description":"Go function for text to speech conversion","archived":false,"fork":false,"pushed_at":"2019-03-05T10:32:39.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-21T03:14:07.631Z","etag":null,"topics":["faas","go","oracle-functions","orafunc-la","serverless","texttospeech"],"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/abhirockzz.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}},"created_at":"2019-01-23T12:10:51.000Z","updated_at":"2024-04-29T11:35:04.000Z","dependencies_parsed_at":"2023-03-12T06:43:21.439Z","dependency_job_id":null,"html_url":"https://github.com/abhirockzz/fn-text2speech","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-text2speech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-text2speech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-text2speech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Ffn-text2speech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhirockzz","download_url":"https://codeload.github.com/abhirockzz/fn-text2speech/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238688237,"owners_count":19513812,"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":["faas","go","oracle-functions","orafunc-la","serverless","texttospeech"],"created_at":"2024-12-21T03:13:48.249Z","updated_at":"2025-10-28T17:31:13.417Z","avatar_url":"https://github.com/abhirockzz.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Function for Text to Speech conversion\n\nThis function converts text to speech using the [alpine `flite`](https://pkgs.alpinelinux.org/package/v3.8/main/x86_64/flite) package. \n\nIt is installed in the runtime image using a custom Dockerfile which is only slightly different compared to the default one i.e. one line has been added to the runtime stage of the Docker build - `RUN apk add --no-cache flite`. This installs the `flite` package into the Docker image itself\n\nThe Go function \n- uses `os.Command` to invoke the `flite` binary\n- which converts the text into speech and saves it into `/tmp/output.wav` (this is deleted before the function exits)\n- the file is then read and the raw bytes are simply returned to the caller\n\n\n## Pre-requisites\n\n- Start by cloning this repository\n- Configure your functions development environment\n- Get latest Fn CLI - `curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh`\n- Switch to right context using `fn use context \u003ccontext name\u003e`\n\n## Create an app\n\n`fn create app text2speech --annotation oracle.com/oci/subnetIds=\u003cSUBNETS\u003e`\n\n## Deploy to Oracle Functions\n\n`fn -v deploy --app text2speech`\n\n## Invoke (and listen..)\n\n`echo -n 'Hope you enjoyed this text to speech example using Oracle Functions' | fn invoke text2speech talk \u003e op.wav \u0026\u0026 afplay op.wav` \n\n`echo -n 'That was dope!' | fn invoke text2speech talk \u003e op.wav \u0026\u0026 afplay op.wav` \n\n^^ (these work seamlessly on Mac)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Ffn-text2speech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhirockzz%2Ffn-text2speech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Ffn-text2speech/lists"}