Skip to content

Commit

Permalink
Merge pull request #27 from AssemblyAI/E07417BDFEA3614F5967B1520F8B2F61
Browse files Browse the repository at this point in the history
Type update
  • Loading branch information
Swimburger committed Dec 14, 2023
2 parents 5dcdb1c + 568e1dd commit 0d816a7
Show file tree
Hide file tree
Showing 3 changed files with 1,995 additions and 71 deletions.
6 changes: 3 additions & 3 deletions scripts/kitchensink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ const transcribeParams: TranscribeParams = {

(async function createTranscriptWithNullUrl() {
try {
await client.transcripts.create({
audio_url: null as unknown as string,
await client.transcripts.submit({
audio: null as unknown as string,
});
console.error("Error expected but not thrown.");
} catch (error) {
console.log("Error expected:", error);
}
})();

(async function createTranscriptWithword_boost() {
(async function createTranscriptWithWordBoost() {
const transcript = await client.transcripts.transcribe({
...transcribeParams,
boost_param: "high",
Expand Down
5 changes: 4 additions & 1 deletion src/types/asyncapi.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ export type SessionBegins = RealtimeBaseMessage & {
* @constant
*/
message_type: "SessionBegins";
/** @description Unique identifier for the established session */
/**
* Format: uuid
* @description Unique identifier for the established session
*/
session_id: string;
};

Expand Down
Loading

0 comments on commit 0d816a7

Please sign in to comment.