{"id":13509439,"url":"https://github.com/ikeikeikeike/bing_translator","last_synced_at":"2025-04-13T06:32:47.770Z","repository":{"id":57479665,"uuid":"45528957","full_name":"ikeikeikeike/bing_translator","owner":"ikeikeikeike","description":"A simple Elixir interface to Bing's translation API. ","archived":false,"fork":false,"pushed_at":"2018-05-13T12:14:23.000Z","size":31,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-10T23:04:50.370Z","etag":null,"topics":["bing-translator","elixir"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/bing_translator","language":"Elixir","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/ikeikeikeike.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":"2015-11-04T09:36:30.000Z","updated_at":"2020-03-31T03:28:24.000Z","dependencies_parsed_at":"2022-09-09T23:10:32.142Z","dependency_job_id":null,"html_url":"https://github.com/ikeikeikeike/bing_translator","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/ikeikeikeike%2Fbing_translator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikeikeikeike%2Fbing_translator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikeikeikeike%2Fbing_translator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikeikeikeike%2Fbing_translator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikeikeikeike","download_url":"https://codeload.github.com/ikeikeikeike/bing_translator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248674659,"owners_count":21143760,"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":["bing-translator","elixir"],"created_at":"2024-08-01T02:01:07.774Z","updated_at":"2025-04-13T06:32:47.728Z","avatar_url":"https://github.com/ikeikeikeike.png","language":"Elixir","funding_links":[],"categories":["Third Party APIs"],"sub_categories":[],"readme":"# Bing Translator, Microsoft Translator\n\n\n[![Build Status](http://img.shields.io/travis/ikeikeikeike/bing_translator.svg?style=flat-square)](http://travis-ci.org/ikeikeikeike/bing_translator)\n[![Hex version](https://img.shields.io/hexpm/v/bing_translator.svg \"Hex version\")](https://hex.pm/packages/bing_translator)\n[![Hex downloads](https://img.shields.io/hexpm/dt/bing_translator.svg \"Hex downloads\")](https://hex.pm/packages/bing_translator)\n\nA simple Elixir interface to Azure's translation API\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed as:\n\n### Add bing_translator to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [{:bing_translator, \"~\u003e 1.0\"}]\nend\n```\n\n### Ensure bing_translator is started before your application:\n\n```elixir\ndef application do\n  [applications: [:bing_translator]]\nend\n```\n\n#### Getting a Subscription Key\n\nTo sign up for the free tier (as of this writing), do the following:\n\n- Text Translator is [here](http://docs.microsofttranslator.com/text-translate.html)\n- Speech Translator is [here](http://docs.microsofttranslator.com/speech-translate.html)\n\n### Usage\n\n```elixir\nspanish = BingTranslator.translate(text: \"Hello. This will be translated!\", from: \"en\", to: \"es\")\n\n# without :from for auto language detection\nspanish = BingTranslator.translate(text: \"Hello. This will be translated!\", to: \"es\")\n\nlocale = BingTranslator.detect(text: \"Hello. This will be translated!\") # =\u003e \"en\"\nlanguages = BingTranslator.supported_language_codes # =\u003e [\"ar\", \"bs-Latn\", \"bg\", \"ca\", \"zh-CHS\",,,,,]\n\n# The speak method calls a text-to-speech interface in the supplied language.\n# It does not translate the text. Format can be 'audio/mp3' or 'audio/wav'\n\naudio = BingTranslator.speak(text: \"Hello. This will be spoken!\", language: :en, format: \"audio/mp3\", options: \"MaxQuality\")\n```\n\n### Configuration\n\nThe default behaviour is to configure using the application environment:\n\nIn config/config.exs, add:\n\n```elixir\nconfig :bing_translator,\n  subscription_key: \"Your-Subscription-Key\",\n  http_client_options: []  #  [ssl: [{:versions, [:\"tlsv1.2\"]}]]\n```\n\nOr using environment variable\n```shell\nBING_TRANSLATOR_SUBSCRIPTION_KEY=Your-Subscription-Key mix run\n```\n\n### Documentation\n\n[API Reference](http://hexdocs.pm/bing_translator/api-reference.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikeikeikeike%2Fbing_translator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikeikeikeike%2Fbing_translator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikeikeikeike%2Fbing_translator/lists"}