You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# Changelog
2
2
3
+
## [4.2.1] - 2024-01-23
4
+
5
+
### Added
6
+
- Add `answer_format` to `LemurActionItemsParams` type
7
+
8
+
### Changed
9
+
- Rename `RealtimeService` to `RealtimeTranscriber`, `RealtimeServiceFactory` to `RealtimeTranscriberFactory`, `RealtimeTranscriberFactory.createService()` to `RealtimeTranscriberFactory.transcriber()`. Deprecated aliases are provided for all old types and functions for backwards compatibility.
10
+
- Restrict the type for `redact_pii_audio_quality` from `string` to `RedactPiiAudioQuality` an enum string.
Copy file name to clipboardExpand all lines: docs/compat.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ If you do use an older version of Node.js like version 16, you'll need to polyfi
13
13
To make the SDK compatible with the browser, the SDK aims to use web standards as much as possible.
14
14
However, there are still incompatibilities between Node.js and the browser.
15
15
16
-
-`RealtimeService` doesn't support the AssemblyAI API key in the browser.
16
+
-`RealtimeTranscriber` doesn't support the AssemblyAI API key in the browser.
17
17
Instead, you have to generate a temporary auth token using `client.realtime.createTemporaryToken`, and pass in the resulting token to the real-time transcriber.
18
18
19
19
Generate a temporary auth token on the server.
@@ -31,16 +31,16 @@ However, there are still incompatibilities between Node.js and the browser.
31
31
> If you embed the API key on the client, everyone can see it and use it for themselves.
32
32
33
33
Then pass the token via an API to the client.
34
-
On the client, create an instance of `RealtimeService` using the token.
34
+
On the client, create an instance of `RealtimeTranscriber` using the token.
35
35
36
36
```js
37
-
import { RealtimeService } from"assemblyai";
37
+
import { RealtimeTranscriber } from"assemblyai";
38
38
// or the following if you're using UMD
39
-
// const { RealtimeService } = assemblyai;
39
+
// const { RealtimeTranscriber } = assemblyai;
40
40
41
41
consttoken=getToken(); // getToken is a function for you to implement
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "assemblyai",
3
-
"version": "4.2.0",
3
+
"version": "4.2.1",
4
4
"description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.",
0 commit comments