{"id":19429818,"url":"https://github.com/akscf/mod_openai_asr","last_synced_at":"2025-04-24T18:32:52.356Z","repository":{"id":237953116,"uuid":"742231448","full_name":"akscf/mod_openai_asr","owner":"akscf","description":"Provides an OpenAI Speech-To-Text features for the Freeswitch. ","archived":false,"fork":false,"pushed_at":"2024-10-17T16:37:03.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-20T00:32:10.576Z","etag":null,"topics":["freeswitch","openai","text-to-speech"],"latest_commit_sha":null,"homepage":"","language":"C","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/akscf.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":"2024-01-12T02:47:08.000Z","updated_at":"2024-10-17T16:37:07.000Z","dependencies_parsed_at":"2024-09-11T03:36:19.520Z","dependency_job_id":null,"html_url":"https://github.com/akscf/mod_openai_asr","commit_stats":null,"previous_names":["akscf/mod_openai_asr"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akscf%2Fmod_openai_asr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akscf%2Fmod_openai_asr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akscf%2Fmod_openai_asr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akscf%2Fmod_openai_asr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akscf","download_url":"https://codeload.github.com/akscf/mod_openai_asr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223962708,"owners_count":17232525,"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":["freeswitch","openai","text-to-speech"],"created_at":"2024-11-10T14:21:41.674Z","updated_at":"2025-04-24T18:32:52.350Z","avatar_url":"https://github.com/akscf.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp\u003e\n  OpenAI Speech-To-Text service for the Freeswitch. \u003cbr\u003e\n  Features: vad, flexible adjustments. \u003cbr\u003e\n  Available through: asr_interface, commnad api \u003cbr\u003e\n  \u003cbr\u003e\n  If you have troubles with building this module, pay attention to this \u003ca href=\"https://github.com/akscf/mod_openai_asr/issues/1\"\u003eissue\u003c/a\u003e and \u003ca href=\"https://github.com/akscf/mod_openai_asr/issues/1#issuecomment-2339346528\"\u003e the comment\u003c/a\u003e, \n  maybe you faced the same thing.\n\u003c/p\u003e\n\n### Dialplan example\n```XML\n\u003cextension name=\"openai-asr\"\u003e\n  \u003ccondition field=\"destination_number\" expression=\"^(3222)$\"\u003e\n    \u003caction application=\"answer\"/\u003e\n    \u003caction application=\"play_and_detect_speech\" data=\"/tmp/test2.wav detect:openai\"/\u003e\n    \u003caction application=\"sleep\" data=\"1000\"/\u003e\n    \u003caction application=\"log\" data=\"CRIT SPEECH_RESULT=${detect_speech_result}\"/\u003e\n    \u003caction application=\"hangup\"/\u003e\n \u003c/condition\u003e\n\u003c/extension\u003e\n```\n\n### mod_quickjs\n```javascript\nsession.ttsEngine= 'openai'; // requires: mod_openai_tts\nsession.asrEngine= 'openai';\n\nvar txt = session.sayAndDetectSpeech('Hello, how can I help you?', 10);\nconsoleLog('info', \"TEXT: \" + txt);\n```\n\n### Command line\n```\nfreeswitch\u003e openai_asr_transcript /tmp/test.[wav|mp3] [key=altKey mode=altModel]\n+OK: How old is the Brooklyn Bridge\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakscf%2Fmod_openai_asr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakscf%2Fmod_openai_asr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakscf%2Fmod_openai_asr/lists"}