### Install Ambient Web Components Source: https://github.com/corticph/speech-web-components/blob/main/ambient/README.md Install the @corti/ambient-web package using npm, yarn, or pnpm. ```bash npm i @corti/ambient-web # yarn add @corti/ambient-web # pnpm add @corti/ambient-web ``` -------------------------------- ### Install corti-dictation Web Component Source: https://github.com/corticph/speech-web-components/blob/main/docs/DEV_README.md Install the dictation-web package using npm. This is the first step to using the component. ```bash npm i @corti/dictation-web ``` -------------------------------- ### Quick Start with Corti Dictation Component Source: https://github.com/corticph/speech-web-components/blob/main/dictation/README.md Integrate the all-in-one `` component to capture and display real-time transcripts. Set the access token on the 'ready' event and listen for 'transcript' events. ```html ``` -------------------------------- ### Quick Start with Corti Ambient Component Source: https://github.com/corticph/speech-web-components/blob/main/ambient/README.md Basic usage of the `` component, including setting the interaction ID and access token, and listening for transcript events. ```html ``` -------------------------------- ### Demo with Storybook Source: https://github.com/corticph/speech-web-components/blob/main/docs/DEV_README.md Commands to run a local Storybook instance for component demoing or to build a production version. ```bash npm run storybook ``` ```bash npm run storybook:build ``` -------------------------------- ### Modular Layout with Dictation Components Source: https://github.com/corticph/speech-web-components/blob/main/dictation/README.md Set up a modular dictation interface using `` and other components like `` and ``. The `` component acts as a context provider for authentication and configuration. ```html ``` -------------------------------- ### Configure Keybindings for Ambient Components Source: https://github.com/corticph/speech-web-components/blob/main/ambient/README.md Customize the push-to-talk and toggle-to-talk keybindings for the ambient components. ```html ``` -------------------------------- ### Modular Layout with Ambient Components Source: https://github.com/corticph/speech-web-components/blob/main/ambient/README.md Assemble a custom layout using modular ambient components like ``, ``, and ``. ```html ``` -------------------------------- ### Run Tests with Web Test Runner Source: https://github.com/corticph/speech-web-components/blob/main/docs/DEV_README.md Execute tests for the project. Use 'test' for a single run or 'test:watch' for interactive mode. ```bash npm run test ``` ```bash npm run test:watch ``` -------------------------------- ### Import Ambient Web Components Source: https://github.com/corticph/speech-web-components/blob/main/ambient/README.md Import the ambient web components into your JavaScript project. ```javascript import "@corti/ambient-web"; // or: import { CortiAmbient } from "@corti/ambient-web"; ``` -------------------------------- ### Configure Keybindings for Dictation Components Source: https://github.com/corticph/speech-web-components/blob/main/dictation/README.md Customize keybindings for toggle-to-talk and push-to-talk functionality on `` or `` elements. Defaults are 'Enter' for toggle and 'Space' for push-to-talk. ```html ``` -------------------------------- ### Enable Virtual Mode in Corti Ambient Component Source: https://github.com/corticph/speech-web-components/blob/main/ambient/README.md Configure the `` component to enable virtual mode, allowing mixing of tab/window audio with microphone input. ```html ``` -------------------------------- ### Include Ambient Web Components via CDN Source: https://github.com/corticph/speech-web-components/blob/main/ambient/README.md Include the ambient web components using a CDN script tag for quick testing. ```html ``` -------------------------------- ### Lint and Format Project Code Source: https://github.com/corticph/speech-web-components/blob/main/docs/DEV_README.md Run npm scripts to check for and automatically fix linting and formatting errors in the project. ```bash npm run lint ``` ```bash npm run format ``` -------------------------------- ### Basic Usage of corti-dictation Web Component Source: https://github.com/corticph/speech-web-components/blob/main/docs/DEV_README.md Import and use the corti-dictation component in your HTML. Ensure the script tag is correctly placed to load the component. ```html ``` -------------------------------- ### Use Dictation Web Component via CDN Source: https://github.com/corticph/speech-web-components/blob/main/dictation/README.md Include the dictation web component in your HTML using a CDN link for quick testing. ```html ``` -------------------------------- ### Import Dictation Web Component Source: https://github.com/corticph/speech-web-components/blob/main/dictation/README.md Import the dictation web component into your JavaScript or TypeScript project. ```javascript import "@corti/dictation-web"; // or: import { CortiDictation } from "@corti/dictation-web"; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.