Skip to content

Commit 156b1fb

Browse files
committed
add python realtime speech transcription + select ai nl2sql
1 parent a21865f commit 156b1fb

File tree

1 file changed

+2
-32
lines changed

1 file changed

+2
-32
lines changed
Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,2 @@
1-
# Python example client for AI Speech Realtime SDK
2-
3-
## Setup
4-
5-
1. Change Directory:
6-
```bash
7-
cd ./speech-packages/ai-speech-realtime-sdk/example-clients/ai-speech-realtime-client-python
8-
```
9-
2. In RealtimeClient.py,
10-
update **line 144** with your `compartmentId`
11-
update **line 32** with your `authentication method` and `profile`
12-
3. Example import:
13-
```python
14-
from oci.ai_speech_realtime import (RealtimeClient, RealtimeClientListener, RealtimeParameters)
15-
```
16-
4. ON VPN →
17-
```bash
18-
pip install -r requirements.txt
19-
```
20-
21-
## Usage
22-
23-
1. Run Python File →
24-
```bash
25-
python RealtimeClient.py
26-
```
27-
2. In RealtimeClient.py,
28-
**Lines from 52-59** can be used to modify the various parameters for the audio capture.
29-
30-
**Lines from 112-132** can be used to modify the various parameters for the realtime service.
31-
32-
**Line 137** can be updated with a different endpoint if required.
1+
For details see the Develop with Oracle AI and Database Services: Gen, Vision, Speech, Language, and OML
2+
located here: https://livelabs.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3874

0 commit comments

Comments
 (0)