Meeting side panel application uses CART link to send caption in live meeting.
This is a sample meeting side panel application which demonstrates how to enable live caption in the meeting and using the CART link how to send caption in live meeting. Meeting side panel application uses CART link to send caption in live meeting.
Enable CART Captions
Once the meeting is scheduled. Follow this doc to enable CART Captions. Copy the CART link it will used while configuring tab for meeting.
Included Features
- Meeting Chat
- Meeting Details
- Meeting SidePanel
- Cart API
Key features
Prerequisites
- Microsoft Teams is installed and you have an account (not a guest account)
- NodeJS
- dev tunnel or ngrok latest version or equivalent tunneling solution
- M365 developer account or access to a Teams account with the appropriate permissions to install an app.
- Teams Toolkit for VS Code or TeamsFx CLI
Run the app (Using Teams Toolkit for Visual Studio Code)
The simplest way to run this sample in Teams is to use Teams Toolkit for Visual Studio Code.
- Ensure you have downloaded and installed Visual Studio Code
- Install the Teams Toolkit extension
- Select File > Open Folder in VS Code and choose this samples directory from the repo
- Using the extension, sign in with your Microsoft 365 account where you have permissions to upload custom apps
- Select Debug > Start Debugging or F5 to run the app in a Teams web client.
- In the browser that launches, select the Add button to install the app to Teams.
To try this sample
Note these instructions are for running the sample on your local machine, the tunnelling solution is required because the Teams service needs to call the tab.
1. Clone and start your sample sample
Clone the repository
git clone https://github.com/OfficeDev/Microsoft-Teams-Samples.git
In a terminal, navigate to
samples/meetings-live-caption/nodejs
Install modules
npm install
Run ngrok - point to port 3978
ngrok http 3978 --host-header="localhost:3978"
Alternatively, you can also use the
dev tunnels
. Please follow Create and host a dev tunnel and host the tunnel with anonymous user access command as shown below:devtunnel host -p 3978 --allow-anonymous
Run your app
npm start
2. Manually update the manifest.json
- Manually update the manifest.json
- Edit the
manifest.json
contained in theappManifest/
folder to replace the<<AppId>>
with any guid value and<<APP-DOMAIN>>
with with base Url domain. E.g. if you are using ngrok it would be1234.ngrok.com
and if you are using dev tunnels then your domain will be12345.devtunnels.ms
. - Zip up the contents of the
appManifest/
folder to create amanifest.zip
- Upload the
manifest.zip
to Teams (in the left-bottom Apps view, click "Manage your apps -> Upload an app -> Upload a custom app")
- Edit the
NOTE: If you are unable to send caption, try configuring tab again.
Features of the sample.
- Schedule the meeting and add Meeting Caption Tab in that particular scheduled meeting.
- Once meeting started, turn on live caption.
- Once the live caption has started, you can use the app to send live caption.
- After clicking on
Submit
button, you will see the caption in the meeting.