{"id":18352836,"url":"https://github.com/membraneframework/membrane_element_ibm_speech_to_text","last_synced_at":"2026-06-08T14:32:11.099Z","repository":{"id":40350364,"uuid":"188040335","full_name":"membraneframework/membrane_element_ibm_speech_to_text","owner":"membraneframework","description":"Membrane plugin providing speech recognition via IBM Cloud Speech-to-Text service","archived":false,"fork":false,"pushed_at":"2026-04-20T13:06:20.000Z","size":223,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-04-20T13:43:53.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/membraneframework.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":"2019-05-22T13:05:10.000Z","updated_at":"2022-12-14T23:01:01.000Z","dependencies_parsed_at":"2023-11-17T16:13:10.101Z","dependency_job_id":null,"html_url":"https://github.com/membraneframework/membrane_element_ibm_speech_to_text","commit_stats":null,"previous_names":["membraneframework/membrane-element-ibm-speech-to-text"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/membraneframework/membrane_element_ibm_speech_to_text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_element_ibm_speech_to_text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_element_ibm_speech_to_text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_element_ibm_speech_to_text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_element_ibm_speech_to_text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/membraneframework","download_url":"https://codeload.github.com/membraneframework/membrane_element_ibm_speech_to_text/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/membraneframework%2Fmembrane_element_ibm_speech_to_text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34067348,"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-08T02:00:07.615Z","response_time":111,"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":"2024-11-05T21:37:36.064Z","updated_at":"2026-06-08T14:32:11.082Z","avatar_url":"https://github.com/membraneframework.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Membrane Multimedia Framework: IBM Speech To Text\n\n[![Hex.pm](https://img.shields.io/hexpm/v/membrane_element_ibm_speech_to_text.svg)](https://hex.pm/packages/membrane_element_ibm_speech_to_text)\n[![API Docs](https://img.shields.io/badge/api-docs-yellow.svg?style=flat)](https://hexdocs.pm/membrane_element_ibm_speech_to_text/)\n[![CircleCI](https://circleci.com/gh/membraneframework/membrane_element_ibm_speech_to_text.svg?style=svg)](https://circleci.com/gh/membraneframework/membrane_element_ibm_speech_to_text)\n\nThis package provides a Sink wrapping [IBM Speech To Text Streaming API client](https://hex.pm/packages/ibm_speech_to_text).\nCurrently supports only audio streams in FLAC format.\n\nThe docs can be found at [HexDocs](https://hexdocs.pm/membrane_element_ibm_speech_to_text).\n\n## Installation\n\nThe package can be installed by adding `membrane_element_ibm_speech_to_text` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:membrane_element_ibm_speech_to_text, \"~\u003e 0.9.0\"}\n  ]\nend\n```\n\n## Usage\n\nThe input stream for this element should be parsed, so most of the time it should be\nplaced in pipeline right after [FLACParser](https://github.com/membraneframework/membrane-element-flac-parser)\n\nHere's an example of pipeline streaming audio file to speech recognition API:\n\n```elixir\ndefmodule SpeechRecognition do\n  use Membrane.Pipeline\n\n  alias IBMSpeechToText.Response\n  alias Membrane.{File, IBMSpeechToText}\n  alias Membrane.FLAC.Parser\n\n  @impl true\n  def handle_init(_ctx, _opts) do\n    structure = \n      child(:src, %File.Source{location: \"sample.flac\"})\n      |\u003e child(:parser, Parser)\n      |\u003e child(:sink, %IBMSpeechToText{\n        region: :frankfurt,\n        api_key: \"PUT_YOUR_API_KEY_HERE\"\n      })\n    \n    {[spec: structure, playback: :playing], nil}\n  end\n\n  @impl true\n  def handle_child_notification(%Response{} = response, _element, _ctx, state) do\n    IO.inspect(response)\n    {[], state}\n  end\n\n  def handle_child_notification(_notification, _element, _ctx, state) do\n    {[], state}\n  end\nend\n```\n\nTo run, the pipeline requires following dependencies:\n\n```elixir\n[\n  {:membrane_core, \"~\u003e 1.0\"},\n  {:membrane_file_plugin, \"~\u003e 0.16.0\"},\n  {:membrane_flac_plugin, \"~\u003e 0.11.0\"},\n  {:membrane_element_ibm_speech_to_text, \"~\u003e 0.9.0\"}\n]\n```\n\n## Testing\n\nThe tests contacting real IBM API are excluded by default. You can run them using `mix test --include external`.\nTo make it work, you need to provide api key via `config/config.exs` or `config/test.secret.exs` the file needs to look like this:\n\n```elixir\nuse Mix.Config\n\nconfig :ibm_speech_to_text, region: :your_region # e.g. :frankfurt\nconfig :ibm_speech_to_text, api_key: \"YOUR_API_KEY_HERE\"\n```\n\n## Copyright and License\n\nCopyright 2019, [Software Mansion](https://swmansion.com/?utm_source=git\u0026utm_medium=readme\u0026utm_campaign=membrane-element-ibm-speech-to-text)\n\n[![Software Mansion](https://logo.swmansion.com/logo?color=white\u0026variant=desktop\u0026width=200\u0026tag=membrane-github)](https://swmansion.com/?utm_source=git\u0026utm_medium=readme\u0026utm_campaign=membrane-element-ibm-speech-to-text)\nipeline\nLicensed under the [Apache License, Version 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_element_ibm_speech_to_text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmembraneframework%2Fmembrane_element_ibm_speech_to_text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmembraneframework%2Fmembrane_element_ibm_speech_to_text/lists"}