Skip to content

Commit d77b5ed

Browse files
giladAiolagilador
andauthored
docs: Update README.md to include supported Langs (#25)
--------- Co-authored-by: giladOr <gilad.or@uprightpose.com>
1 parent ed5097c commit d77b5ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def transcribe_file():
128128
with open('path/to/your/audio.wav', 'rb') as audio_file:
129129
transcript = client.stt.transcribe_file(
130130
file=audio_file,
131-
language="en"
131+
language="e" # supported lan: en,de,fr,es,pr,zh,ja,it
132132
)
133133

134134
print(transcript)
@@ -151,7 +151,7 @@ def live_streaming():
151151
api_key=os.getenv("AIOLA_API_KEY") or "YOUR_API_KEY"
152152
)
153153
client = AiolaClient(access_token=result["accessToken"])
154-
connection = client.stt.stream(lang_code="en")
154+
connection = client.stt.stream(lang_code="e") # supported lan: en,de,fr,es,pr,zh,ja,it
155155

156156
@connection.on(LiveEvents.Transcript)
157157
def on_transcript(data):
@@ -273,7 +273,7 @@ async def transcribe_file():
273273
with open('path/to/your/audio.wav', 'rb') as audio_file:
274274
transcript = await client.stt.transcribe_file(
275275
file=audio_file,
276-
language="en"
276+
language="e" # supported lan: en,de,fr,es,pr,zh,ja,it
277277
)
278278

279279
print(transcript)
@@ -361,4 +361,4 @@ if __name__ == "__main__":
361361

362362
## Examples
363363

364-
The SDK includes several example scripts in the `examples/` directory.
364+
The SDK includes several example scripts in the `examples/` directory.

0 commit comments

Comments
 (0)