Code Monkey home page Code Monkey logo

talking-heads-embeddable-frontend's Introduction

Talking Heads Embeddable UI

What it does

With this bundled files you can easily embed the talking heads ui in any website of your choice.

Necessary files

In order for the UI to work on your server, three files need to be downloaded and added yo the HTML code.

javascript bundle

This contains the functional part of the application. You can choose to always use the latest version or keep using a version that you like.

The possible bundle names are:

  • latest.js
  • version.js (you can check the available versions in the changelog)

css bundle

This contains the styling of the aplication. As in the javascript bundle, you can choose to always use the latest version or keep using a version that you like. Make sure to use the same version in both bundles.

The possible bundle names are:

  • latest.css
  • version.css (you can check the available versions in the changelog)

microsoft sdk

This contains the speech recognition functionality. The name is:

  • microsoft-speech-sdk.js

Integration

To fully integrate the component on your webpage, you will need to download all these three files from our server.

Then, you will need an html element that will have the id set to talking-head.

Note: you can replace latest with the version of your choice.

Google Analytics (GA4)

To add Google Analytics to your website, simply copy and paste the provided tracking snippet into the head of your index.thml file. We will then be able to start sending custom events to the corresponding Google Analytics property.

For a list of available custom events click [here] (https://gist.github.com/FeaR6077/ece66d085ad3de7be529e13f63c9c09e).

<!-- JavasScript bundle -->
<script defer src="https://talk.crowdmedia.com/bundle/latest.js"></script>

<!-- CSS bundle -->
<link rel="stylesheet" href="https://talk.crowdmedia.com/bundle/latest.css" />

<!-- Microsoft speech recognition bundle -->
<script src="https://talk.crowdmedia.com/bundle/microsoft-speech-recognition.js"></script>

<!-- Body containing element with id="talking-head" -->
<body>
  <div
    id="talking-head"
    data-embed="true"
    data-org_id="your org id"
    data-head_id="your head id"
    data-theme="light"
    data-language="en-US"
    data-font="Nunito"
    data-time_pressure="true"
    data-touch_to_start_icon="URL"
  ></div>
</body>

Configure your head

We provide some configuration options, that you can add inside the element containing the id="talking-head".

  • data-embed: If set to something other "1" or "true", you will be able to access the full UI (default is true)
  • data-org_id: Your org id (required)
  • data-head_id: Your head id (required)
  • data-theme: light or dark (default is light)
  • data-language: used for speech recognition and UI elements (default is en-US). If you need a language we do not support, contact us.
  • data-font: A font of your choice. Note: you will need to have this font available in your current frontend. (default is Nunito)
  • data-time_pressure: choose if you wish to show the counter timer to the user.
  • data-touch_to_start_icon: URL of an icon that will replace the default touch to start icon

talking-heads-embeddable-frontend's People

Contributors

a96lex avatar fear6077 avatar marcel-aflr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.