@@ -10,23 +10,32 @@ Symbl's APIs empower developers to enable:
1010
1111## List of Sample Codes
1212
13- - [ PSTN Dial-in using Voice SDK] ( ./examples/voice-sdk/telephony-speaker-events/index.js )
13+ ### Real-time
14+
15+ - [ Real-time Topics using WebSockets] ( ./examples/node/realtime/topics )
16+ - Connect directly using Streaming API to push audio and get Topics discussed
17+ in real-time.
18+ [ Read More] ( ./examples/node/realtime/topics/Readme.md )
19+ - [ Real-time Trackers using WebSockets] ( ./examples/node/realtime/trackers )
20+ - Connect directly using Streaming API to push audio and get Trackers discussed
21+ in real-time.
22+ [ Read More] ( ./examples/node/realtime/trackers/Readme.md )
23+
24+ ### Telephony
25+
26+ - [ Passing different Audio Codecs] ( ./examples/node/telephony/custom-audio-config )
27+ - [ Realtime Output with PSTN Dialin using Voice SDK] ( ./examples/node/telephony/realtime-insights-transcription )
28+ - Get the live transcription and insights events in a Telephone call.
29+ [ Read More] ( ./examples/node/telephony/realtime-insights-transcription/Readme.md )
30+ - [ Intent Detection with PSTN Dial-In using Voice SDK] ( ./examples/node/telephony/realtime-intent-detection )
31+ - Get the intents, real-time in a Telephone call.
32+ [ Read More] ( ./examples/node/telephony/realtime-intent-detection/Readme.md )
33+ - [ PSTN Dial-in using Voice SDK] ( ./examples/node/telephony/speaker-events )
1434 - Establishes a connection using a phone number through PSTN, to send speaker
1535 events, generate insights, and display a summary URL with the output. You
1636 can see how to initialize the Voice SDK, connect to the endpoint, push
1737 speaker events and get the summary URL.
18- [ Read More] ( ./examples/voice-sdk/telephony-speaker-events/Readme.md )
19- - [ Realtime WebSocket using Voice SDK] ( ./examples/voice-sdk/realtime-websocket-topics/index.js )
20- - Connect directly using WebSocket API and push audio and get results in
21- real-time. Including Live Transcript and Insights.
22- [ Read More] ( ./examples/voice-sdk/realtime-websocket-single-stream/Readme.md )
23- - [ Realtime Output with PSTN Dialin using Voice SDK] ( ./examples/voice-sdk/telephony-real-time-insights-transcription/index.js )
24- - Get the live transcription and insights events in a Telephone call.
25- [ Read More] ( ./examples/voice-sdk/telephony-real-time-insights-transcription/Readme.md )
26- - [ Intent Detection with PSTN Dial-In using Voice SDK] ( ./examples/voice-sdk/telephony-realtime-intent-detection/index.js )
27- - Get the intents, real-time in a Telephone call.
28- [ Read More] ( ./examples/voice-sdk/telephony-realtime-intent-detection/Readme.md )
29- - [ Passing different Audio Codecs] ( ./examples/voice-sdk/telephony-custom-audio-config/index.js )
38+ [ Read More] ( ./examples/node/telephony/speaker-events/Readme.md )
3039
3140## Install
3241
@@ -45,59 +54,31 @@ configurations. Make copy of `.env.default` file as `.env`.
4554cp .env.default .env
4655```
4756
48- Update ` APP_ID ` and ` APP_SECRET ` with valid values. You can get them by logging
49- into [ Symbl Platform] ( https://platform.symbl.ai ) . Update any additional
50- configuration such as ` DEFAULT_PHONE_NUMBER ` may be required for a particular
51- sample to work properly.
57+ Update ` APP_ID ` , ` APP_SECRET ` , and ` SUMMARY_EMAIL ` with valid values. You can
58+ get them by logging into [ Symbl Platform] ( https://platform.symbl.ai ) . Update
59+ any additional configuration such as ` DEFAULT_PHONE_NUMBER ` may be required for
60+ a particular sample to work properly.
5261
5362## Run
5463
55- Make sure any required configuration is done within the code and/or ` .env ` file.
56-
57- Every sample code has more instructions wherever applicable.
58-
59- Once you've configured the above, simply run any sample code you would like to
60- try for example:
61-
62- ### Transcribe Phone Call Live
63-
64- ``` bash
65- node ./tutorials/node/live-transcript-phone-call/index.js
66- ```
67-
68- ### Stream a Real-time WebSocket
64+ Make sure your ` .env ` file is configured correctly.
6965
70- ``` bash
71- node ./examples/voice-sdk/realtime-websocket-single-stream/index.js
72- ```
73-
74- ### Customize an Audio Configuration
75-
76- ``` bash
77- node ./examples/voice-sdk/telephony-custom-audio-config/index.js
78- ```
79-
80- ### Customize Language and Timezone
66+ Once you've configured the above, execute the ` run-examples.sh ` script.
8167
82- ``` bash
83- node ./examples/voice-sdk/telephony-custom-language-and-timezone/index.js
8468```
69+ Syntax: run-example.sh [API_TYPE] [PROJECT_NAME] <SDK_LANG>
70+ API_TYPE: realtime or telephony
8571
86- ### Detect Real-time Telephony Insights
72+ If PROJECT_NAME is missing, a list of available projects will be displayed on
73+ screen based on the API_TYPE selected.
8774
88- ``` bash
89- node ./examples/voice-sdk/telephony-real-time-insights-transcription/index.js
90- ```
75+ Currently, the only accepted value for SDK_LANG is node, but is a optional parameter.
9176
92- ### Detect Intents in Real-Time
77+ To list examples for realtime projects, run:
78+ run-example.sh realitime
9379
94- ``` bash
95- node ./examples/voice-sdk/telephony-realtime-intent-detection/index.js
96- ```
97- ### Handle Speaker Events
98-
99- ``` bash
100- node ./examples/voice-sdk/telephony-speaker-events/index.js
80+ To the realtime tracker example, run:
81+ run-example.sh realitime tracker
10182```
10283
10384## Testing for PSTN
0 commit comments