Skip to content

Commit

Permalink
Master (#413)
Browse files Browse the repository at this point in the history
* Fix build.

* Fix build. (#392)

* Reverts the last commit (#393)

* DC-321 (#395)

* DC-321

* Update reference.md

* DC-219 Make API endpoints page more visible for Async APIs (#394)

* change for exp branch

* merge-docs-v1 added for build to workflow

* changes for dev and prod dispatch events

* Testing changes

* DC-219 Make API endpoints page more visible for Async APIs

* DC-219 Split Async API page into two pages

Co-authored-by: harshad-symbl <[email protected]>
Co-authored-by: Adam Voliva <[email protected]>
Co-authored-by: amritesh-singh <[email protected]>

* DC-211 Added interlinking between live captioning, insights and topics (#398)

* change for exp branch

* merge-docs-v1 added for build to workflow

* changes for dev and prod dispatch events

* Testing changes

* DC-211 Added interlinking between live captioning, insights and topics

Co-authored-by: harshad-symbl <[email protected]>
Co-authored-by: Adam Voliva <[email protected]>
Co-authored-by: amritesh-singh <[email protected]>

* Fix the compilation error (#387)

The code sample does not run due to additional paranthesis. Fixed it

* Updates sidebar.js (#407)

* Revert "Updates sidebar.js (#407)"

This reverts commit 346425e.

* Revert "Fix the compilation error (#387)"

This reverts commit d6525d3.

* Revert "DC-211 Added interlinking between live captioning, insights and topics (#398)"

This reverts commit c1513d3.

* Revert "DC-219 Make API endpoints page more visible for Async APIs (#394)"

This reverts commit 905d1ec.

* Revert "DC-321 (#395)"

This reverts commit ca217bc.

* Revert "Fix build. (#392)"

This reverts commit b28e6e4.

* Revert "DC-120 (#385)"

This reverts commit 74c36f0.

* Revert "DC-220 Minor wording change to conform to styleguide (#384)"

This reverts commit 5a01612.

* Revert "DC-284 (#378)"

This reverts commit 4aa2b5d.

* Revert "Merge pull request #409 from symblai/reverting"

This reverts commit 9a47075, reversing
changes made to 5d54f79.

* trigger build.

* REmove sidebar customizations.

* Fix docsidebaritem.

Co-authored-by: avoliva <[email protected]>
Co-authored-by: Pema <[email protected]>
Co-authored-by: Amritesh Singh <[email protected]>
Co-authored-by: Mukulika <[email protected]>
Co-authored-by: harshad-symbl <[email protected]>
Co-authored-by: warunawijesinhaarachchige <[email protected]>
  • Loading branch information
7 people authored Mar 4, 2022
1 parent 74c36f0 commit cf3638b
Show file tree
Hide file tree
Showing 18 changed files with 2,151 additions and 14,011 deletions.
30 changes: 30 additions & 0 deletions docs/async-api/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,33 @@ It can be useful in any use case where you have access to a video file of any ty

* [Submit Video URL](/docs/async-api/overview/video/post-video-url)
* [Append Video URL To Existing Conversation](/docs/async-api/overview/video/put-video-url)


## Endpoints

### Text API

| Method | Endpoint | |
|--------|----------|-|
|`POST` | `https://api.symbl.ai/v1/process/text` | [Reference](/docs/async-api/overview/text/post-text)
|`PUT` | `https://api.symbl.ai/v1/process/text/{conversationId}` | [Reference](/docs/async-api/overview/text/put-text)


### Audio API

| Method | Endpoint | |
|--------|----------|-|
|`POST` | `https://api.symbl.ai/v1/process/audio` | [Reference](/docs/async-api/overview/audio/post-audio)
|`POST` | `https://api.symbl.ai/v1/process/audio/url` | [Reference](/docs/async-api/overview/audio/post-audio-url)
|`PUT` | `https://api.symbl.ai/v1/process/audio/{conversationId}` | [Reference](/docs/async-api/overview/audio/put-audio)
|`PUT` | `https://api.symbl.ai/v1/process/audio/url/{conversationId}` | [Reference](/docs/async-api/overview/audio/put-audio-url)


### Video API

| Method | Endpoint | |
|--------|----------|-|
|`POST` | `https://api.symbl.ai/v1/process/video` | [Reference](/docs/async-api/overview/video/post-video)
|`POST` | `https://api.symbl.ai/v1/process/video/url` | [Reference](/docs/async-api/overview/video/post-video-url)
|`PUT` | `https://api.symbl.ai/v1/process/video/{conversationId}` | [Reference](/docs/async-api/overview/video/put-video)
|`PUT` | `https://api.symbl.ai/v1/process/video/url/{conversationId}` | [Reference](/docs/async-api/overview/video/put-video-url)
Original file line number Diff line number Diff line change
@@ -1,37 +1,9 @@
---
id: reference
title: Async API Reference
id: supported-languages
title: Supported Languages
sidebar_label: Supported Languages
---

## Endpoints

### Text API

| Method | Endpoint | |
|--------|----------|-|
|`POST` | `https://api.symbl.ai/v1/process/text` | [Reference](/docs/async-api/overview/text/post-text)
|`PUT` | `https://api.symbl.ai/v1/process/text/{conversationId}` | [Reference](/docs/async-api/overview/text/put-text)


### Audio API

| Method | Endpoint | |
|--------|----------|-|
|`POST` | `https://api.symbl.ai/v1/process/audio` | [Reference](/docs/async-api/overview/audio/post-audio)
|`POST` | `https://api.symbl.ai/v1/process/audio/url` | [Reference](/docs/async-api/overview/audio/post-audio-url)
|`PUT` | `https://api.symbl.ai/v1/process/audio/{conversationId}` | [Reference](/docs/async-api/overview/audio/put-audio)
|`PUT` | `https://api.symbl.ai/v1/process/audio/url/{conversationId}` | [Reference](/docs/async-api/overview/audio/put-audio-url)


### Video API

| Method | Endpoint | |
|--------|----------|-|
|`POST` | `https://api.symbl.ai/v1/process/video` | [Reference](/docs/async-api/overview/video/post-video)
|`POST` | `https://api.symbl.ai/v1/process/video/url` | [Reference](/docs/async-api/overview/video/post-video-url)
|`PUT` | `https://api.symbl.ai/v1/process/video/{conversationId}` | [Reference](/docs/async-api/overview/video/put-video)
|`PUT` | `https://api.symbl.ai/v1/process/video/url/{conversationId}` | [Reference](/docs/async-api/overview/video/put-video-url)

## Supported Languages

The Async Audio and Async Video APIs can work with languages other than English.
Expand Down
7 changes: 4 additions & 3 deletions docs/streamingapi/code-snippets/receive-live-captioning.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
id: receive-live-captioning
title: Receive Live Captioning
slug: /streamingapi/code-snippets/receive-live-captioning
---

import Tabs from '@theme/Tabs';
Expand Down Expand Up @@ -333,7 +334,7 @@ If successful you should receive a response in the console.
}]
```

## See Also




- [Receive live insights](/docs/streamingapi/code-snippets/receive-live-insights)
- [Receive live topics](/docs/streamingapi/code-snippets/receive-live-topics)
7 changes: 4 additions & 3 deletions docs/streamingapi/code-snippets/receive-live-insights.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
id: receive-ai-insights
title: Receive Live AI Insights
slug: /streamingapi/code-snippets/receive-live-insights
---

import Tabs from '@theme/Tabs';
Expand Down Expand Up @@ -300,7 +301,7 @@ If successful you should receive a response in the console.
}]
```

## See Also




- [Receive live captioning](/docs/streamingapi/code-snippets/receive-live-captioning)
- [Receive live topics](/docs/streamingapi/code-snippets/receive-live-topics)
6 changes: 6 additions & 0 deletions docs/streamingapi/code-snippets/receive-live-topics.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
id: receive-live-topics
title: Receive Live Topics
slug: /streamingapi/code-snippets/receive-live-topics
---

import Tabs from '@theme/Tabs';
Expand Down Expand Up @@ -258,3 +259,8 @@ If successful you should receive a response in the console.
"type": "topic"
}]
```

## See Also

- [Receive live captioning](/docs/streamingapi/code-snippets/receive-live-captioning)
- [Receive live insights](/docs/streamingapi/code-snippets/receive-live-insights)
12 changes: 4 additions & 8 deletions docs/streamingapi/reference/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ Symbl's Streaming API is based on the WebSocket protocol and can be used for rea
Currently, Streaming API is supported in English only. However, the support for Spanish is available as a part of Symbl Labs.
:::

:::note Opus codec
Streaming API supports Opus with 48000 Hz sample rate.
:::

## Request Parameters

#### Endpoint
Expand Down Expand Up @@ -81,17 +77,17 @@ Field | Required | Supported value | Default Value | Description

Field | Required | Supported value | Default Value | Description
---------- | ------- | ------- | ------- | -------
```encoding``` | false | LINEAR16, FLAC, MULAW | LINEAR16 | Audio Encoding in which the audio will be sent over the WebSocket.
```sampleRateHertz ``` | false | | 16000 | The rate of the incoming audio stream.

```encoding``` | false | `LINEAR16`, `FLAC`, `MULAW`, `Opus` | `LINEAR16` | Audio Encoding in which the audio will be sent over the WebSocket.
```sampleRateHertz ``` | false | | `16000` | The rate of the incoming audio stream. The following are supported with the sample rates: <br/> encoding `LINEAR16` for sample rates `8000` to `48000`, <br/> encoding `FLAC` for sample rates `16000 ` and above, <br/> encoding `MULAW` for sample rates `8000`, <br/> encoding `Opus` for sample rates `16000` to `48000`.

##### Code Example

```js
{
"speechRecognition": {
"encoding": "LINEAR16",
"sampleRateHertz": 44100 // Make sure the correct sample rate is provided for best results
"sampleRateHertz": 16000 // Make sure the correct sample rate is provided for best results
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ if (data.type === 'message' && data.message.hasOwnProperty('data')) {
request.send()
}

};
if (data.type === 'message_response') {
for (let message of data.messages) {
console.log('Transcript (more accurate): ', message.payload.content);
Expand Down Expand Up @@ -433,4 +432,4 @@ const handleSuccess = (stream) => {
handleSuccess(stream);
```

If you properly implemented the code, the code runs successfully in the browser!
If you properly implemented the code, the code runs successfully in the browser!
Loading

0 comments on commit cf3638b

Please sign in to comment.