beckgom / captionr-static-web-app

Real-time captioning and translation app on Azure Static Web Apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running locally

Azure resources

  • Storage account
    • In the storage account, create a table named messages
  • Azure Cognitive Speech account in westus2 (location can be set in frontend/constants.js)
  • Azure SignalR Service

Configure Azure Functions (api folder)

  • Create a local.settings.json by copying local.settings.sample.json. In local.settings.json, set these values:
    • Storage - connection string from your storage account
    • AzureSignalRConnectionString - connection string from your SignalR Service instance
    • JwtSigningKey - any string that will be used to sign the token used to authenticate the host when sending captions to Azure Functions

Run the apps

  1. In a terminal, start the Azure Function app:

    cd api
    npm install
    func host start
    
  2. In another terminal, start the Vue.js frontend:

    cd frontend
    npm install
    npm run serve
    
  3. Open the browser to http://localhost:8080 .

    1. Click on "Create a new meeting".
    2. Paste your Cognitive Speech key into the box and start captioning.
    3. Note the meeting join link and password.
  4. Open another browser the meeting join link in the first window.

    1. Enter the password from the first window, click join.
  5. You should see the captioning working.

About

Real-time captioning and translation app on Azure Static Web Apps


Languages

Language:Vue 55.1%Language:JavaScript 41.8%Language:HTML 3.1%