{"id":18563403,"url":"https://github.com/compulim/botframework-directlinejs-speech","last_synced_at":"2025-10-08T22:23:53.413Z","repository":{"id":40732724,"uuid":"210661975","full_name":"compulim/botframework-directlinejs-speech","owner":"compulim","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T11:17:39.000Z","size":25540,"stargazers_count":3,"open_issues_count":17,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-15T18:13:24.748Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/compulim.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}},"created_at":"2019-09-24T17:37:18.000Z","updated_at":"2022-08-01T04:36:26.000Z","dependencies_parsed_at":"2023-02-02T10:00:25.468Z","dependency_job_id":null,"html_url":"https://github.com/compulim/botframework-directlinejs-speech","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/compulim/botframework-directlinejs-speech","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fbotframework-directlinejs-speech","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fbotframework-directlinejs-speech/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fbotframework-directlinejs-speech/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fbotframework-directlinejs-speech/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compulim","download_url":"https://codeload.github.com/compulim/botframework-directlinejs-speech/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Fbotframework-directlinejs-speech/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264506265,"owners_count":23619005,"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-11-06T22:12:31.846Z","updated_at":"2025-10-08T22:23:48.389Z","avatar_url":"https://github.com/compulim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DirectLineJS for Direct Line Speech channel\n\n[![Build Status](https://travis-ci.org/compulim/botframework-directlinejs-speech.svg?branch=master)](https://travis-ci.org/compulim/botframework-directlinejs-speech)\n\n## Hosted demo\n\nTo try out the demo, navigate to https://compulim.github.io/botframework-directlinejs-speech/?s=DIRECT_LINE_SECRET\u0026sr=SPEECH_SERVICES_REGION\u0026ss=SPEECH_SERVICES_SUBSCRIPTION_KEY.\n\nThe demo page is connected to a bot codenamed \"Waterbottle\", source code at [compulim/botframework-waterbottle](https://github.com/compulim/botframework-waterbottle).\n\nThe build drops can be found on [this release page](https://github.com/compulim/botframework-directlinejs-speech/releases/tag/dev):\n\n- `botframework-directlinejs-speech-*.tgz` is the tarball as if we would publish it\n- [`botframework-directlinejs-speech.tgz`](https://github.com/compulim/botframework-directlinejs-speech/releases/download/dev/botframework-directlinejs-speech.tgz) is the latest tarball\n- `directlinespeech-*.js` is the bundle to be used in browser, under `window.DirectLineSpeech`\n- [`directlinespeech.js`](https://github.com/compulim/botframework-directlinejs-speech/releases/download/dev/directlinespeech.js) is the latest bundle\n\n## How to contribute\n\nThis repository has [Travis CI configured for CI/CD](https://travis-ci.org/compulim/botframework-directlinejs-speech). When a commit is pushed, it will automatically deploy to the demo page. It should complete the whole process within 5 minutes.\n\n### Bumping Speech SDK version\n\n1. Clone the source code\n1. Run `npm ci`\n1. Drop the tarball under `/external/` folder\n1. Run `npm install external/microsoft-cognitiveservices-speech-sdk-1.6.0-alpha.0.1.tgz`\n   - This will update `package-lock.json`\n1. Push a commit\n1. Wait until Travis CI completely built it\n   - Build status at https://travis-ci.org/compulim/botframework-directlinejs-speech\n1. Try out the demo at https://compulim.github.io/botframework-directlinejs-speech/\n\n\u003e Note: GitHub Pages limit to 10 deployments per hour\n\n#### Updating Speech SDK package name\n\nIf you do need to modify the package name, don't modify `package.json` by hand, do the followings instead:\n\n1. `npm uninstall microsoft-cognitiveservices-speech-sdk`\n1. `npm install external/your-new-package.tgz`\n1. You may need to modify `/src/index.js` to reference the new package\n\n### Modifying DirectLineJS source code\n\n1. Clone the repository\n1. `npm ci`\n1. `npm start`\n1. Start modifying `/src/index.js`\n   - When you save the file, make sure Babel and Webpack both compile successfully\n1. Navigate to http://localhost:5000/\n\n### Modifying the bot\n\nPlease submit a ticket to either repository and drop me a message.\n\nThe bot is part of a test harness. Modifying it may break a lot of tests.\n\n### Using it in your own web app\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en-US\"\u003e\n  \u003chead\u003e\n    \u003cscript src=\"https://github.com/compulim/botframework-directlinejs-speech/releases/download/dev/directlinespeech.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"https://cdn.botframework.com/botframework-webchat/4.5.2/webchat.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv id=\"webchat\"\u003e\u003c/div\u003e\n    \u003cscript\u003e\n      window.WebChat.renderWebChat({\n        directLine: new window.DirectLineSpeech.DirectLine({\n          token: '...'\n        })\n      }, document.getElementById('webchat'));\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Questions\n\n### How can I use Direct Line token as the credentials?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Fbotframework-directlinejs-speech","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompulim%2Fbotframework-directlinejs-speech","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Fbotframework-directlinejs-speech/lists"}