Quickstart - Web

This tutorial only contains a quick way to start using Zeroth on browser

Zeroth ready in 5 mins

First, create file name Index.html

index.html
<!DOCTYPE html>
<html>
<body>
  <div>
    <h2>Zeroth Demo</h2>
    <h3>Record</h3>
    <p>
      <button class='start'>start</button>
      <button class='stop'>stop</button>

    </p>
    <h3>Response</h3>
    <p>
      <span><b>transcript only - </b></span>
      <span class='transcript'></span>
    </p>
    <p>
      <span><b>complete json - </b></span>
      <span class='json'></span>
    </p>
  </div>

  <script src='zeroth.min.js'></script><!-- Importing zeroth.min.js -->
  <script src='app.js'></script>
</body>
</html>
  • Line 8: It is a button to start recording

  • Line 9: It is a button to stop recording

  • Line 14: It is an area for result of transcription. result will be shown in it.

  • Line 22: It imports zeroth library. you can download zeroth.min.js from here

  • Line 23: zeroth library will be initialized here.

create app.js file to initialize zeroth as below. Detail explanation can be found in Javascript Library Page

JavaScript Library

⚠️ important you have to replace$YOUR_APP_ID and$YOUR_APP_SECRETwith yours from Zeroth Console ( https://zeroth-console.goodatlas.com​). You will have to create new application.

open index.html and you can start using Zeroth.

Last updated