From f1441d37260d5cad0ec348c41b2fdfec5f3f4e37 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 17 Jul 2026 19:03:01 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...erters.TranscriptOptionalParamsDomain.g.cs | 53 + ...ranscriptOptionalParamsDomainNullable.g.cs | 60 + .../AssemblyAI.JsonSerializerContext.g.cs | 10 +- ...AssemblyAI.JsonSerializerContextTypes.g.cs | 12 +- ...lyAI.Models.ContentSafetyLabelsResult.g.cs | 2 +- ...ssemblyAI.Models.SeverityScoreSummary.g.cs | 2 +- ...lyAI.Models.TopicDetectionModelResult.g.cs | 2 +- .../AssemblyAI.Models.Transcript.g.cs | 22 +- ...blyAI.Models.TranscriptOptionalParams.g.cs | 82 +- ...Models.TranscriptOptionalParamsDomain.g.cs | 53 + ...ptOptionalParamsRedactPiiAudioOptions.g.cs | 4 +- ...iptOptionalParamsRedactStaticEntities.g.cs | 2 +- ...ranscriptOptionalParamsSpeakerOptions.g.cs | 8 +- ...odels.TranscriptRedactPiiAudioOptions.g.cs | 4 +- ...AssemblyAI.Models.TranscriptUtterance.g.cs | 2 +- .../Generated/autosdk.generated-examples.json | 2 +- src/libs/AssemblyAI/openapi.yaml | 5545 ++++++++--------- 17 files changed, 2741 insertions(+), 3124 deletions(-) create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsDomain.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsDomainNullable.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsDomain.g.cs diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsDomain.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsDomain.g.cs new file mode 100644 index 0000000..b186527 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsDomain.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptOptionalParamsDomainJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptOptionalParamsDomain Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptOptionalParamsDomainExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptOptionalParamsDomain)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptOptionalParamsDomain); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptOptionalParamsDomain value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsDomainExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsDomainNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsDomainNullable.g.cs new file mode 100644 index 0000000..a40896d --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsDomainNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptOptionalParamsDomainNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptOptionalParamsDomain? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptOptionalParamsDomainExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptOptionalParamsDomain)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptOptionalParamsDomain?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptOptionalParamsDomain? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsDomainExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs index d339518..5e2e6bb 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs @@ -21,6 +21,10 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.SubtitleFormatNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsDomainJsonConverter), + + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsDomainNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), @@ -105,8 +109,6 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.TranscriptParamsJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter?, object>), typeof(global::AssemblyAI.JsonConverters.AnyOfJsonConverter), @@ -159,12 +161,12 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptCustomSpelling))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfStringObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsDomain), TypeInfoPropertyName = "TranscriptOptionalParamsDomain2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf?, object>), TypeInfoPropertyName = "OneOfAnyOfTranscriptLanguageCodeStringObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.AnyOf), TypeInfoPropertyName = "AnyOfTranscriptLanguageCodeString2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptLanguageCode), TypeInfoPropertyName = "TranscriptLanguageCode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions))] diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index c8b6819..5e84ecd 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -104,27 +104,27 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.OneOf? Type19 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsDomain? Type19 { get; set; } /// /// /// - public object? Type20 { get; set; } + public global::System.Collections.Generic.IList? Type20 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type21 { get; set; } + public global::AssemblyAI.OneOf?, object>? Type21 { get; set; } /// /// /// - public global::AssemblyAI.OneOf?, object>? Type22 { get; set; } + public global::AssemblyAI.AnyOf? Type22 { get; set; } /// /// /// - public global::AssemblyAI.AnyOf? Type23 { get; set; } + public global::AssemblyAI.TranscriptLanguageCode? Type23 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageCode? Type24 { get; set; } + public object? Type24 { get; set; } /// /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs index 25582b4..1f92881 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.ContentSafetyLabelsResult.g.cs @@ -6,7 +6,7 @@ namespace AssemblyAI /// /// An array of results for the Content Moderation model, if it is enabled.
/// See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information.
- /// Example: {"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"label":"disasters","confidence":0.8142836093902588,"severity":0.4093044400215149}],"sentences_idx_start":0,"sentences_idx_end":5,"timestamp":{"start":250,"end":28840}}],"summary":{"disasters":0.9940800441842205,"health_issues":0.9216489289040967},"severity_score_summary":{"disasters":{"low":0.5733263024656846,"medium":0.42667369753431533,"high":0},"health_issues":{"low":0.22863814977924785,"medium":0.45014154926938227,"high":0.32122030095136983}}} + /// Example: {"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"label":"disasters","confidence":0.8142836093902588,"severity":0.4093044400215149}],"sentences_idx_start":0,"sentences_idx_end":5,"timestamp":{"start":250,"end":28840}}],"summary":{"disasters":0.9940800441842205,"health_issues":0.9216489289040967},"severity_score_summary":{"disasters":{"low":0.5733263024656846,"medium":0.42667369753431533,"high":0.0},"health_issues":{"low":0.22863814977924785,"medium":0.45014154926938227,"high":0.32122030095136983}}} ///
public sealed partial class ContentSafetyLabelsResult { diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs index b11ec08..bcc8af7 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SeverityScoreSummary.g.cs @@ -5,7 +5,7 @@ namespace AssemblyAI { /// /// Severity score summary
- /// Example: {"low":0.5733263024656846,"medium":0.42667369753431533,"high":0} + /// Example: {"low":0.5733263024656846,"medium":0.42667369753431533,"high":0.0} ///
public sealed partial class SeverityScoreSummary { diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs index 05ce907..4f339f6 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TopicDetectionModelResult.g.cs @@ -6,7 +6,7 @@ namespace AssemblyAI /// /// The result of the Topic Detection model, if it is enabled.
/// See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) for more information.
- /// Example: {"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"relevance":0.988274097442627,"label":"Home\u0026Garden\u003EIndoorEnvironmentalQuality"},{"relevance":0.5821335911750793,"label":"NewsAndPolitics\u003EWeather"},{"relevance":0.0042327106930315495,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth"},{"relevance":0.0033971222583204508,"label":"NewsAndPolitics\u003EDisasters"},{"relevance":0.002469958271831274,"label":"BusinessAndFinance\u003EBusiness\u003EGreenSolutions"},{"relevance":0.0014376690378412604,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ECancer"},{"relevance":0.0014294233405962586,"label":"Science\u003EEnvironment"},{"relevance":0.001234519761055708,"label":"Travel\u003ETravelLocations\u003EPolarTravel"},{"relevance":0.0010231725173071027,"label":"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu"},{"relevance":0.0007445293595083058,"label":"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry"}],"timestamp":{"start":250,"end":28840}}],"summary":{"NewsAndPolitics\u003EWeather":1,"Home\u0026Garden\u003EIndoorEnvironmentalQuality":0.9043831825256348,"Science\u003EEnvironment":0.16117265820503235,"BusinessAndFinance\u003EIndustries\u003EEnvironmentalServicesIndustry":0.14393523335456848,"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth":0.11401086300611496,"BusinessAndFinance\u003EBusiness\u003EGreenSolutions":0.06348437070846558,"NewsAndPolitics\u003EDisasters":0.05041387677192688,"Travel\u003ETravelLocations\u003EPolarTravel":0.01308488193899393,"HealthyLiving":0.008222488686442375,"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu":0.0022315620444715023,"MedicalHealth\u003EDiseasesAndConditions\u003EHeartAndCardiovascularDiseases":0.00213034451007843,"HealthyLiving\u003EWellness\u003ESmokingCessation":0.001540527562610805,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries":0.0013950627762824297,"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry":0.0012570273829624057,"MedicalHealth\u003EDiseasesAndConditions\u003ECancer":0.001097781932912767,"MedicalHealth\u003EDiseasesAndConditions\u003EAllergies":0.0010148967849090695,"MedicalHealth\u003EDiseasesAndConditions\u003EMentalHealth":0.000717321818228811,"Style\u0026Fashion\u003EPersonalCare\u003EDeodorantAndAntiperspirant":0.0006022014422342181,"Technology\u0026Computing\u003EComputing\u003EComputerNetworking":0.0005461975233629346,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries\u003EFirstAid":0.0004885646631009877}} + /// Example: {"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"relevance":0.988274097442627,"label":"Home\u0026Garden\u003EIndoorEnvironmentalQuality"},{"relevance":0.5821335911750793,"label":"NewsAndPolitics\u003EWeather"},{"relevance":0.0042327106930315495,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth"},{"relevance":0.0033971222583204508,"label":"NewsAndPolitics\u003EDisasters"},{"relevance":0.002469958271831274,"label":"BusinessAndFinance\u003EBusiness\u003EGreenSolutions"},{"relevance":0.0014376690378412604,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ECancer"},{"relevance":0.0014294233405962586,"label":"Science\u003EEnvironment"},{"relevance":0.001234519761055708,"label":"Travel\u003ETravelLocations\u003EPolarTravel"},{"relevance":0.0010231725173071027,"label":"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu"},{"relevance":0.0007445293595083058,"label":"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry"}],"timestamp":{"start":250,"end":28840}}],"summary":{"NewsAndPolitics\u003EWeather":1.0,"Home\u0026Garden\u003EIndoorEnvironmentalQuality":0.9043831825256348,"Science\u003EEnvironment":0.16117265820503235,"BusinessAndFinance\u003EIndustries\u003EEnvironmentalServicesIndustry":0.14393523335456848,"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth":0.11401086300611496,"BusinessAndFinance\u003EBusiness\u003EGreenSolutions":0.06348437070846558,"NewsAndPolitics\u003EDisasters":0.05041387677192688,"Travel\u003ETravelLocations\u003EPolarTravel":0.01308488193899393,"HealthyLiving":0.008222488686442375,"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu":0.0022315620444715023,"MedicalHealth\u003EDiseasesAndConditions\u003EHeartAndCardiovascularDiseases":0.00213034451007843,"HealthyLiving\u003EWellness\u003ESmokingCessation":0.001540527562610805,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries":0.0013950627762824297,"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry":0.0012570273829624057,"MedicalHealth\u003EDiseasesAndConditions\u003ECancer":0.001097781932912767,"MedicalHealth\u003EDiseasesAndConditions\u003EAllergies":0.0010148967849090695,"MedicalHealth\u003EDiseasesAndConditions\u003EMentalHealth":0.000717321818228811,"Style\u0026Fashion\u003EPersonalCare\u003EDeodorantAndAntiperspirant":0.0006022014422342181,"Technology\u0026Computing\u003EComputing\u003EComputerNetworking":0.0005461975233629346,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries\u003EFirstAid":0.0004885646631009877}} ///
public sealed partial class TopicDetectionModelResult { diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs index 42b0e8d..a3eb239 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -7,7 +7,7 @@ namespace AssemblyAI { /// /// A transcript object
- /// Example: {"id":"9ea68fd3-f953-42c1-9742-976c447fb463","speech_model":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","language_model":"assemblyai_default","acoustic_model":"assemblyai_default","language_code":"en_us","language_detection":true,"language_confidence_threshold":0.7,"language_confidence":0.9959,"status":"completed","audio_url":"https://assembly.ai/wildfires.mp3","text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning. What is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there\u0027s a couple of things. The season has been pretty dry already. And then the fact that we\u0027re getting hit in the US. Is because there\u0027s a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there. So what is it in this haze that makes it harmful? And I\u0027m assuming it is harmful. It is. The levels outside right now in Baltimore are considered unhealthy. And most of that is due to what\u0027s called particulate matter, which are tiny particles, microscopic smaller than the width of your hair that can get into your lungs and impact your respiratory system, your cardiovascular system, and even your neurological your brain. What makes this particularly harmful? Is it the volume of particulant? Is it something in particular? What is it exactly? Can you just drill down on that a little bit more? Yeah. So the concentration of particulate matter I was looking at some of the monitors that we have was reaching levels of what are, in science, big 150 micrograms per meter cubed, which is more than ten times what the annual average should be and about four times higher than what you\u0027re supposed to have on a 24 hours average. And so the concentrations of these particles in the air are just much, much higher than we typically see. And exposure to those high levels can lead to a host of health problems. And who is most vulnerable? I noticed that in New York City, for example, they\u0027re canceling outdoor activities. And so here it is in the early days of summer, and they have to keep all the kids inside. So who tends to be vulnerable in a situation like this? It\u0027s the youngest. So children, obviously, whose bodies are still developing. The elderly, who are their bodies are more in decline and they\u0027re more susceptible to the health impacts of breathing, the poor air quality. And then people who have preexisting health conditions, people with respiratory conditions or heart conditions can be triggered by high levels of air pollution. Could this get worse? That\u0027s a good question. In some areas, it\u0027s much worse than others. And it just depends on kind of where the smoke is concentrated. I think New York has some of the higher concentrations right now, but that\u0027s going to change as that air moves away from the New York area. But over the course of the next few days, we will see different areas being hit at different times with the highest concentrations. I was going to ask you about more fires start burning. I don\u0027t expect the concentrations to go up too much higher. I was going to ask you how and you started to answer this, but how much longer could this last? Or forgive me if I\u0027m asking you to speculate, but what do you think? Well, I think the fires are going to burn for a little bit longer, but the key for us in the US. Is the weather system changing. And so right now, it\u0027s kind of the weather systems that are pulling that air into our mid Atlantic and Northeast region. As those weather systems change and shift, we\u0027ll see that smoke going elsewhere and not impact us in this region as much. And so I think that\u0027s going to be the defining factor. And I think the next couple of days we\u0027re going to see a shift in that weather pattern and start to push the smoke away from where we are. And finally, with the impacts of climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences or circumstances? I mean, that is one of the predictions for climate change. Looking into the future, the fire season is starting earlier and lasting longer, and we\u0027re seeing more frequent fires. So, yeah, this is probably something that we\u0027ll be seeing more frequently. This tends to be much more of an issue in the Western US. So the eastern US. Getting hit right now is a little bit new. But yeah, I think with climate change moving forward, this is something that is going to happen more frequently. That\u0027s Peter De Carlo, associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Sergeant Carlo, thanks so much for joining us and sharing this expertise with us. Thank you for having me.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97465,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99844,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"of","start":1434,"end":1614,"confidence":0.84,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89572,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93953,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"triggering","start":3492,"end":3946,"confidence":0.74794,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"air","start":3978,"end":4174,"confidence":1,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"quality","start":4212,"end":4558,"confidence":0.88077,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94814,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"US.","start":5732,"end":6382,"confidence":0.89,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}],"utterances":[{"confidence":0.9359033333333334,"end":26950,"speaker":"A","start":250,"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97503,"speaker":"A"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"A"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99843,"speaker":"A"},{"text":"of","start":1434,"end":1614,"confidence":0.85,"speaker":"A"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89657,"speaker":"A"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"A"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93864,"speaker":"A"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"A"},{"text":"triggering","start":3492,"end":3946,"confidence":0.75366,"speaker":"A"},{"text":"air","start":3978,"end":4174,"confidence":1,"speaker":"A"},{"text":"quality","start":4212,"end":4558,"confidence":0.87745,"speaker":"A"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94739,"speaker":"A"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"A"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"A"},{"text":"US.","start":5732,"end":6382,"confidence":0.88,"speaker":"A"}]}],"confidence":0.9404651451800253,"audio_duration":281,"punctuate":true,"format_text":true,"multichannel":false,"webhook_url":"https://your-webhook-url.tld/path","webhook_status_code":200,"webhook_auth":true,"webhook_auth_header_name":"webhook-secret","auto_highlights_result":{"status":"success","results":[{"count":1,"rank":0.08,"text":"air quality alerts","timestamps":[{"start":3978,"end":5114}]},{"count":1,"rank":0.08,"text":"wide ranging air quality consequences","timestamps":[{"start":235388,"end":238694}]},{"count":1,"rank":0.07,"text":"more wildfires","timestamps":[{"start":230972,"end":232354}]},{"count":1,"rank":0.07,"text":"air pollution","timestamps":[{"start":156004,"end":156910}]},{"count":3,"rank":0.07,"text":"weather systems","timestamps":[{"start":47344,"end":47958},{"start":205268,"end":205818},{"start":211588,"end":213434}]},{"count":2,"rank":0.06,"text":"high levels","timestamps":[{"start":121128,"end":121646},{"start":155412,"end":155866}]},{"count":1,"rank":0.06,"text":"health conditions","timestamps":[{"start":152138,"end":152666}]},{"count":2,"rank":0.06,"text":"Peter de Carlo","timestamps":[{"start":18948,"end":19930},{"start":268298,"end":269194}]},{"count":1,"rank":0.06,"text":"New York City","timestamps":[{"start":125768,"end":126274}]},{"count":1,"rank":0.05,"text":"respiratory conditions","timestamps":[{"start":152964,"end":153786}]},{"count":3,"rank":0.05,"text":"New York","timestamps":[{"start":125768,"end":126034},{"start":171448,"end":171938},{"start":176008,"end":176322}]},{"count":3,"rank":0.05,"text":"climate change","timestamps":[{"start":229548,"end":230230},{"start":244576,"end":245162},{"start":263348,"end":263950}]},{"count":1,"rank":0.05,"text":"Johns Hopkins University Varsity","timestamps":[{"start":23972,"end":25490}]},{"count":1,"rank":0.05,"text":"heart conditions","timestamps":[{"start":153988,"end":154506}]},{"count":1,"rank":0.05,"text":"air quality warnings","timestamps":[{"start":12308,"end":13434}]}]},"auto_highlights":true,"audio_start_from":10,"audio_end_at":280,"filter_profanity":true,"redact_pii":true,"redact_pii_audio":true,"redact_pii_audio_quality":"mp3","redact_pii_policies":["us_social_security_number","credit_card_number"],"redact_pii_sub":"hash","speaker_labels":true,"content_safety":true,"iab_categories":true,"content_safety_labels":{"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"label":"disasters","confidence":0.8142836093902588,"severity":0.4093044400215149}],"sentences_idx_start":0,"sentences_idx_end":5,"timestamp":{"start":250,"end":28840}}],"summary":{"disasters":0.9940800441842205,"health_issues":0.9216489289040967},"severity_score_summary":{"disasters":{"low":0.5733263024656846,"medium":0.42667369753431533,"high":0},"health_issues":{"low":0.22863814977924785,"medium":0.45014154926938227,"high":0.32122030095136983}}},"iab_categories_result":{"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"relevance":0.988274097442627,"label":"Home\u0026Garden\u003EIndoorEnvironmentalQuality"},{"relevance":0.5821335911750793,"label":"NewsAndPolitics\u003EWeather"},{"relevance":0.0042327106930315495,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth"},{"relevance":0.0033971222583204508,"label":"NewsAndPolitics\u003EDisasters"},{"relevance":0.002469958271831274,"label":"BusinessAndFinance\u003EBusiness\u003EGreenSolutions"},{"relevance":0.0014376690378412604,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ECancer"},{"relevance":0.0014294233405962586,"label":"Science\u003EEnvironment"},{"relevance":0.001234519761055708,"label":"Travel\u003ETravelLocations\u003EPolarTravel"},{"relevance":0.0010231725173071027,"label":"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu"},{"relevance":0.0007445293595083058,"label":"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry"}],"timestamp":{"start":250,"end":28840}}],"summary":{"NewsAndPolitics\u003EWeather":1,"Home\u0026Garden\u003EIndoorEnvironmentalQuality":0.9043831825256348,"Science\u003EEnvironment":0.16117265820503235,"BusinessAndFinance\u003EIndustries\u003EEnvironmentalServicesIndustry":0.14393523335456848,"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth":0.11401086300611496,"BusinessAndFinance\u003EBusiness\u003EGreenSolutions":0.06348437070846558,"NewsAndPolitics\u003EDisasters":0.05041387677192688,"Travel\u003ETravelLocations\u003EPolarTravel":0.01308488193899393,"HealthyLiving":0.008222488686442375,"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu":0.0022315620444715023,"MedicalHealth\u003EDiseasesAndConditions\u003EHeartAndCardiovascularDiseases":0.00213034451007843,"HealthyLiving\u003EWellness\u003ESmokingCessation":0.001540527562610805,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries":0.0013950627762824297,"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry":0.0012570273829624057,"MedicalHealth\u003EDiseasesAndConditions\u003ECancer":0.001097781932912767,"MedicalHealth\u003EDiseasesAndConditions\u003EAllergies":0.0010148967849090695,"MedicalHealth\u003EDiseasesAndConditions\u003EMentalHealth":0.000717321818228811,"Style\u0026Fashion\u003EPersonalCare\u003EDeodorantAndAntiperspirant":0.0006022014422342181,"Technology\u0026Computing\u003EComputing\u003EComputerNetworking":0.0005461975233629346,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries\u003EFirstAid":0.0004885646631009877}},"custom_spelling":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","throttled":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","auto_chapters":false,"summarization":false,"summary_type":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary_model":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","custom_topics":true,"topics":[],"speech_threshold":0.5,"remove_audio_tags":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","domain":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","disfluencies":false,"sentiment_analysis":true,"sentiment_analysis_results":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","entity_detection":true,"entities":[{"entity_type":"location","text":"Canada","start":2548,"end":3130},{"entity_type":"location","text":"the US","start":5498,"end":6382},{"entity_type":"location","text":"Maine","start":7492,"end":7914},{"entity_type":"location","text":"Maryland","start":8212,"end":8634},{"entity_type":"location","text":"Minnesota","start":8932,"end":9578},{"entity_type":"person_name","text":"Peter de Carlo","start":18948,"end":19930},{"entity_type":"occupation","text":"associate professor","start":20292,"end":21194},{"entity_type":"organization","text":"Department of Environmental Health and Engineering","start":21508,"end":23706},{"entity_type":"organization","text":"Johns Hopkins University Varsity","start":23972,"end":25490},{"entity_type":"occupation","text":"professor","start":26076,"end":26950},{"entity_type":"location","text":"the US","start":45184,"end":45898},{"entity_type":"nationality","text":"Canadian","start":49728,"end":50086}],"chapters":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","speakers_expected":2} + /// Example: {"id":"9ea68fd3-f953-42c1-9742-976c447fb463","speech_model":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","language_model":"assemblyai_default","acoustic_model":"assemblyai_default","language_code":"en_us","language_detection":true,"language_confidence_threshold":0.7,"language_confidence":0.9959,"status":"completed","audio_url":"https://assembly.ai/wildfires.mp3","text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning. What is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there\u0027s a couple of things. The season has been pretty dry already. And then the fact that we\u0027re getting hit in the US. Is because there\u0027s a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there. So what is it in this haze that makes it harmful? And I\u0027m assuming it is harmful. It is. The levels outside right now in Baltimore are considered unhealthy. And most of that is due to what\u0027s called particulate matter, which are tiny particles, microscopic smaller than the width of your hair that can get into your lungs and impact your respiratory system, your cardiovascular system, and even your neurological your brain. What makes this particularly harmful? Is it the volume of particulant? Is it something in particular? What is it exactly? Can you just drill down on that a little bit more? Yeah. So the concentration of particulate matter I was looking at some of the monitors that we have was reaching levels of what are, in science, big 150 micrograms per meter cubed, which is more than ten times what the annual average should be and about four times higher than what you\u0027re supposed to have on a 24 hours average. And so the concentrations of these particles in the air are just much, much higher than we typically see. And exposure to those high levels can lead to a host of health problems. And who is most vulnerable? I noticed that in New York City, for example, they\u0027re canceling outdoor activities. And so here it is in the early days of summer, and they have to keep all the kids inside. So who tends to be vulnerable in a situation like this? It\u0027s the youngest. So children, obviously, whose bodies are still developing. The elderly, who are their bodies are more in decline and they\u0027re more susceptible to the health impacts of breathing, the poor air quality. And then people who have preexisting health conditions, people with respiratory conditions or heart conditions can be triggered by high levels of air pollution. Could this get worse? That\u0027s a good question. In some areas, it\u0027s much worse than others. And it just depends on kind of where the smoke is concentrated. I think New York has some of the higher concentrations right now, but that\u0027s going to change as that air moves away from the New York area. But over the course of the next few days, we will see different areas being hit at different times with the highest concentrations. I was going to ask you about more fires start burning. I don\u0027t expect the concentrations to go up too much higher. I was going to ask you how and you started to answer this, but how much longer could this last? Or forgive me if I\u0027m asking you to speculate, but what do you think? Well, I think the fires are going to burn for a little bit longer, but the key for us in the US. Is the weather system changing. And so right now, it\u0027s kind of the weather systems that are pulling that air into our mid Atlantic and Northeast region. As those weather systems change and shift, we\u0027ll see that smoke going elsewhere and not impact us in this region as much. And so I think that\u0027s going to be the defining factor. And I think the next couple of days we\u0027re going to see a shift in that weather pattern and start to push the smoke away from where we are. And finally, with the impacts of climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences or circumstances? I mean, that is one of the predictions for climate change. Looking into the future, the fire season is starting earlier and lasting longer, and we\u0027re seeing more frequent fires. So, yeah, this is probably something that we\u0027ll be seeing more frequently. This tends to be much more of an issue in the Western US. So the eastern US. Getting hit right now is a little bit new. But yeah, I think with climate change moving forward, this is something that is going to happen more frequently. That\u0027s Peter De Carlo, associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Sergeant Carlo, thanks so much for joining us and sharing this expertise with us. Thank you for having me.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97465,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99844,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"of","start":1434,"end":1614,"confidence":0.84,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89572,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93953,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"triggering","start":3492,"end":3946,"confidence":0.74794,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"air","start":3978,"end":4174,"confidence":1.0,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"quality","start":4212,"end":4558,"confidence":0.88077,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94814,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"},{"text":"US.","start":5732,"end":6382,"confidence":0.89,"speaker":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464"}],"utterances":[{"confidence":0.9359033333333334,"end":26950,"speaker":"A","start":250,"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97503,"speaker":"A"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"A"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99843,"speaker":"A"},{"text":"of","start":1434,"end":1614,"confidence":0.85,"speaker":"A"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89657,"speaker":"A"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"A"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93864,"speaker":"A"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"A"},{"text":"triggering","start":3492,"end":3946,"confidence":0.75366,"speaker":"A"},{"text":"air","start":3978,"end":4174,"confidence":1.0,"speaker":"A"},{"text":"quality","start":4212,"end":4558,"confidence":0.87745,"speaker":"A"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94739,"speaker":"A"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"A"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"A"},{"text":"US.","start":5732,"end":6382,"confidence":0.88,"speaker":"A"}]}],"confidence":0.9404651451800253,"audio_duration":281,"punctuate":true,"format_text":true,"multichannel":false,"webhook_url":"https://your-webhook-url.tld/path","webhook_status_code":200,"webhook_auth":true,"webhook_auth_header_name":"webhook-secret","auto_highlights_result":{"status":"success","results":[{"count":1,"rank":0.08,"text":"air quality alerts","timestamps":[{"start":3978,"end":5114}]},{"count":1,"rank":0.08,"text":"wide ranging air quality consequences","timestamps":[{"start":235388,"end":238694}]},{"count":1,"rank":0.07,"text":"more wildfires","timestamps":[{"start":230972,"end":232354}]},{"count":1,"rank":0.07,"text":"air pollution","timestamps":[{"start":156004,"end":156910}]},{"count":3,"rank":0.07,"text":"weather systems","timestamps":[{"start":47344,"end":47958},{"start":205268,"end":205818},{"start":211588,"end":213434}]},{"count":2,"rank":0.06,"text":"high levels","timestamps":[{"start":121128,"end":121646},{"start":155412,"end":155866}]},{"count":1,"rank":0.06,"text":"health conditions","timestamps":[{"start":152138,"end":152666}]},{"count":2,"rank":0.06,"text":"Peter de Carlo","timestamps":[{"start":18948,"end":19930},{"start":268298,"end":269194}]},{"count":1,"rank":0.06,"text":"New York City","timestamps":[{"start":125768,"end":126274}]},{"count":1,"rank":0.05,"text":"respiratory conditions","timestamps":[{"start":152964,"end":153786}]},{"count":3,"rank":0.05,"text":"New York","timestamps":[{"start":125768,"end":126034},{"start":171448,"end":171938},{"start":176008,"end":176322}]},{"count":3,"rank":0.05,"text":"climate change","timestamps":[{"start":229548,"end":230230},{"start":244576,"end":245162},{"start":263348,"end":263950}]},{"count":1,"rank":0.05,"text":"Johns Hopkins University Varsity","timestamps":[{"start":23972,"end":25490}]},{"count":1,"rank":0.05,"text":"heart conditions","timestamps":[{"start":153988,"end":154506}]},{"count":1,"rank":0.05,"text":"air quality warnings","timestamps":[{"start":12308,"end":13434}]}]},"auto_highlights":true,"audio_start_from":10,"audio_end_at":280,"filter_profanity":true,"redact_pii":true,"redact_pii_audio":true,"redact_pii_audio_quality":"mp3","redact_pii_policies":["us_social_security_number","credit_card_number"],"redact_pii_sub":"hash","speaker_labels":true,"content_safety":true,"iab_categories":true,"content_safety_labels":{"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"label":"disasters","confidence":0.8142836093902588,"severity":0.4093044400215149}],"sentences_idx_start":0,"sentences_idx_end":5,"timestamp":{"start":250,"end":28840}}],"summary":{"disasters":0.9940800441842205,"health_issues":0.9216489289040967},"severity_score_summary":{"disasters":{"low":0.5733263024656846,"medium":0.42667369753431533,"high":0.0},"health_issues":{"low":0.22863814977924785,"medium":0.45014154926938227,"high":0.32122030095136983}}},"iab_categories_result":{"status":"success","results":[{"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.","labels":[{"relevance":0.988274097442627,"label":"Home\u0026Garden\u003EIndoorEnvironmentalQuality"},{"relevance":0.5821335911750793,"label":"NewsAndPolitics\u003EWeather"},{"relevance":0.0042327106930315495,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth"},{"relevance":0.0033971222583204508,"label":"NewsAndPolitics\u003EDisasters"},{"relevance":0.002469958271831274,"label":"BusinessAndFinance\u003EBusiness\u003EGreenSolutions"},{"relevance":0.0014376690378412604,"label":"MedicalHealth\u003EDiseasesAndConditions\u003ECancer"},{"relevance":0.0014294233405962586,"label":"Science\u003EEnvironment"},{"relevance":0.001234519761055708,"label":"Travel\u003ETravelLocations\u003EPolarTravel"},{"relevance":0.0010231725173071027,"label":"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu"},{"relevance":0.0007445293595083058,"label":"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry"}],"timestamp":{"start":250,"end":28840}}],"summary":{"NewsAndPolitics\u003EWeather":1.0,"Home\u0026Garden\u003EIndoorEnvironmentalQuality":0.9043831825256348,"Science\u003EEnvironment":0.16117265820503235,"BusinessAndFinance\u003EIndustries\u003EEnvironmentalServicesIndustry":0.14393523335456848,"MedicalHealth\u003EDiseasesAndConditions\u003ELungAndRespiratoryHealth":0.11401086300611496,"BusinessAndFinance\u003EBusiness\u003EGreenSolutions":0.06348437070846558,"NewsAndPolitics\u003EDisasters":0.05041387677192688,"Travel\u003ETravelLocations\u003EPolarTravel":0.01308488193899393,"HealthyLiving":0.008222488686442375,"MedicalHealth\u003EDiseasesAndConditions\u003EColdAndFlu":0.0022315620444715023,"MedicalHealth\u003EDiseasesAndConditions\u003EHeartAndCardiovascularDiseases":0.00213034451007843,"HealthyLiving\u003EWellness\u003ESmokingCessation":0.001540527562610805,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries":0.0013950627762824297,"BusinessAndFinance\u003EIndustries\u003EPowerAndEnergyIndustry":0.0012570273829624057,"MedicalHealth\u003EDiseasesAndConditions\u003ECancer":0.001097781932912767,"MedicalHealth\u003EDiseasesAndConditions\u003EAllergies":0.0010148967849090695,"MedicalHealth\u003EDiseasesAndConditions\u003EMentalHealth":0.000717321818228811,"Style\u0026Fashion\u003EPersonalCare\u003EDeodorantAndAntiperspirant":0.0006022014422342181,"Technology\u0026Computing\u003EComputing\u003EComputerNetworking":0.0005461975233629346,"MedicalHealth\u003EDiseasesAndConditions\u003EInjuries\u003EFirstAid":0.0004885646631009877}},"custom_spelling":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","throttled":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","auto_chapters":false,"summarization":false,"summary_type":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary_model":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","custom_topics":true,"topics":[],"speech_threshold":0.5,"remove_audio_tags":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","domain":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","disfluencies":false,"sentiment_analysis":true,"sentiment_analysis_results":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","entity_detection":true,"entities":[{"entity_type":"location","text":"Canada","start":2548,"end":3130},{"entity_type":"location","text":"the US","start":5498,"end":6382},{"entity_type":"location","text":"Maine","start":7492,"end":7914},{"entity_type":"location","text":"Maryland","start":8212,"end":8634},{"entity_type":"location","text":"Minnesota","start":8932,"end":9578},{"entity_type":"person_name","text":"Peter de Carlo","start":18948,"end":19930},{"entity_type":"occupation","text":"associate professor","start":20292,"end":21194},{"entity_type":"organization","text":"Department of Environmental Health and Engineering","start":21508,"end":23706},{"entity_type":"organization","text":"Johns Hopkins University Varsity","start":23972,"end":25490},{"entity_type":"occupation","text":"professor","start":26076,"end":26950},{"entity_type":"location","text":"the US","start":45184,"end":45898},{"entity_type":"nationality","text":"Canadian","start":49728,"end":50086}],"chapters":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","summary":"openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464","speakers_expected":2} ///
public sealed partial class Transcript { @@ -92,7 +92,7 @@ public sealed partial class Transcript public global::AssemblyAI.OneOf? ContentSafetyLabels { get; set; } /// - /// Customize how words are spelled and formatted using to and from values. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. + /// Customize how words are spelled and formatted using to and from values. Each `to` value must be a single word, and each `from` phrase can contain at most 5 words. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. /// [global::System.Text.Json.Serialization.JsonPropertyName("custom_spelling")] public global::System.Collections.Generic.IList? CustomSpelling { get; set; } @@ -265,7 +265,7 @@ public sealed partial class Transcript public global::System.Collections.Generic.IList? RedactPiiPolicies { get; set; } /// - /// The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. + /// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. /// [global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SubstitutionPolicyJsonConverter))] @@ -367,7 +367,7 @@ public sealed partial class Transcript public string? SummaryType { get; set; } /// - /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
+ /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. By default, all inline annotations are removed.
/// Note: This parameter is only supported for the Universal-3.5 Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")] @@ -376,7 +376,7 @@ public sealed partial class Transcript /// /// The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3.5 Pro model. + /// Note: This parameter only takes effect on the Universal-3.5 Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")] public double? Temperature { get; set; } @@ -420,7 +420,7 @@ public sealed partial class Transcript public required bool WebhookAuth { get; set; } /// - /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests + /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. Must be 1-1000 characters and contain only ASCII letters, numbers, hyphens, and underscores. Requires `webhook_auth_header_value` and `webhook_url` to also be set. /// [global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth_header_name")] public string? WebhookAuthHeaderName { get; set; } @@ -568,7 +568,7 @@ public sealed partial class Transcript /// See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information. /// /// - /// Customize how words are spelled and formatted using to and from values. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. + /// Customize how words are spelled and formatted using to and from values. Each `to` value must be a single word, and each `from` phrase can contain at most 5 words. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. /// /// /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2. @@ -652,7 +652,7 @@ public sealed partial class Transcript /// See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. /// /// - /// The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. + /// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. /// /// /// Whether the original unredacted transcript was also returned alongside the redacted one. When `true`, the response includes `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. @@ -684,12 +684,12 @@ public sealed partial class Transcript /// Speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). See the task-specific docs for available options and configuration. /// /// - /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
+ /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. By default, all inline annotations are removed.
/// Note: This parameter is only supported for the Universal-3.5 Pro model. /// /// /// The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3.5 Pro model. + /// Note: This parameter only takes effect on the Universal-3.5 Pro model. /// /// /// The textual transcript of your media file @@ -708,7 +708,7 @@ public sealed partial class Transcript /// The original turn-by-turn utterance objects before PII redaction was applied. Same shape as `utterances`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `utterances` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. /// /// - /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests + /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. Must be 1-1000 characters and contain only ASCII letters, numbers, hyphens, and underscores. Requires `webhook_auth_header_value` and `webhook_url` to also be set. /// /// /// The status code we received from your server when delivering the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) request, if a webhook URL was provided diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs index d000f91..906e363 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs @@ -24,7 +24,7 @@ public sealed partial class TranscriptOptionalParams public int? AudioStartFrom { get; set; } /// - /// Enable [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters), can be true or false. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible chapter summaries. See the [updated Auto Chapters page](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) for details.
+ /// Enable [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters), can be true or false. Requires `punctuate` to be `true`, and cannot be enabled together with `summarization`. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible chapter summaries. See the [updated Auto Chapters page](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) for details.
/// Note: This parameter is only supported for the Universal-2 model.
/// Default Value: false ///
@@ -47,14 +47,14 @@ public sealed partial class TranscriptOptionalParams public bool? ContentSafety { get; set; } /// - /// The confidence threshold for the [Content Moderation](https://www.assemblyai.com/docs/content-moderation) model. Values must be between 25 and 100.
+ /// The confidence threshold for the [Content Moderation](https://www.assemblyai.com/docs/content-moderation) model. Values must be between 25 and 100. Requires `content_safety` to be enabled; otherwise it's ignored.
/// Default Value: 50 ///
[global::System.Text.Json.Serialization.JsonPropertyName("content_safety_confidence")] public int? ContentSafetyConfidence { get; set; } /// - /// Customize how words are spelled and formatted using to and from values. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. + /// Customize how words are spelled and formatted using to and from values. Each `to` value must be a single word, and each `from` phrase can contain at most 5 words. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. /// [global::System.Text.Json.Serialization.JsonPropertyName("custom_spelling")] public global::System.Collections.Generic.IList? CustomSpelling { get; set; } @@ -68,12 +68,12 @@ public sealed partial class TranscriptOptionalParams /// /// Enable domain-specific transcription models to improve accuracy for specialized terminology. Set to `"medical-v1"` to enable [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) for improved accuracy of medical terms such as medications, procedures, conditions, and dosages.
- /// Supported languages: English (`en`), Spanish (`es`), German (`de`), French (`fr`). If used with an unsupported language, the parameter is ignored and a warning is returned.
+ /// Supported languages: English (`en`), Spanish (`es`), German (`de`), French (`fr`). If `medical-v1` is used with an unsupported language, the parameter is ignored and a warning is returned.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("domain")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? Domain { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsDomainJsonConverter))] + public global::AssemblyAI.TranscriptOptionalParamsDomain? Domain { get; set; } /// /// Enable [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/entity-detection), can be true or false
@@ -169,14 +169,14 @@ public sealed partial class TranscriptOptionalParams public bool? Punctuate { get; set; } /// - /// Redact PII from the transcribed text using the Redact PII model, can be true or false. See [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
+ /// Redact PII from the transcribed text using the Redact PII model, can be true or false. Requires `format_text` to be `true`. See [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("redact_pii")] public bool? RedactPii { get; set; } /// - /// Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details.
+ /// Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. Requires `redact_pii` to be `true`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details.
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_audio")] @@ -205,7 +205,7 @@ public sealed partial class TranscriptOptionalParams public global::System.Collections.Generic.IList? RedactPiiPolicies { get; set; } /// - /// The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
+ /// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
/// Default Value: hash ///
[global::System.Text.Json.Serialization.JsonPropertyName("redact_pii_sub")] @@ -222,33 +222,33 @@ public sealed partial class TranscriptOptionalParams /// /// A map of user-defined terms to redact, where each key is a redaction label and each value is a list of exact terms to match (e.g. `{ "INTERNAL_TOOL": ["Bearclaw", "Cubclaw"] }`). Each matching term in the transcript is redacted using the `redact_pii_sub` substitution, on top of standard PII Redaction. Useful for redacting specific, predefined terms (proprietary names, internal codenames) that aren't general PII categories.
- /// This is a literal find-and-replace (tolerant of casing, surrounding punctuation, and minor spacing/hyphenation), not a model — it does not generalize beyond the terms you provide. Requires `redact_pii` to be `true`, otherwise a 400 error is returned. When `redact_pii_audio` is enabled, matched terms are also redacted in the audio output. See [Static Entity Redaction](https://www.assemblyai.com/docs/guardrails/redact-pii-from-transcripts#static-entity-redaction) for more details. + /// This is a literal find-and-replace (tolerant of casing, surrounding punctuation, and minor spacing/hyphenation), not a model — it does not generalize beyond the terms you provide. Requires `redact_pii` to be `true`, otherwise a 400 error is returned. When `redact_pii_audio` is enabled, matched terms are also redacted in the audio output. You can provide up to 100 labels, each with up to 200 terms of at most 200 characters; a label may contain only letters, numbers, spaces, underscores, and hyphens (max 80 characters). See [Static Entity Redaction](https://www.assemblyai.com/docs/guardrails/redact-pii-from-transcripts#static-entity-redaction) for more details. ///
[global::System.Text.Json.Serialization.JsonPropertyName("redact_static_entities")] public global::System.Collections.Generic.Dictionary>? RedactStaticEntities { get; set; } /// - /// Enable [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis), can be true or false
+ /// Enable [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis), can be true or false. Requires `punctuate` to be `true`.
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("sentiment_analysis")] public bool? SentimentAnalysis { get; set; } /// - /// Enable [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), can be true or false
+ /// Enable [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), can be true or false. Requires `punctuate` to be `true`.
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("speaker_labels")] public bool? SpeakerLabels { get; set; } /// - /// Specify options for [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). Use this to set a range of possible speakers. + /// Specify options for [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). Use this to set a range of possible speakers. Requires `speaker_labels` to be `true`, and cannot be used together with `speakers_expected`. When both bounds are set, `min_speakers_expected` must be less than or equal to `max_speakers_expected`. /// [global::System.Text.Json.Serialization.JsonPropertyName("speaker_options")] public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? SpeakerOptions { get; set; } /// - /// Tells the speaker label model how many speakers it should attempt to identify. See [Set number of speakers expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) for more details.
+ /// Tells the speaker label model how many speakers it should attempt to identify. Requires `speaker_labels` to be `true` and must be a positive integer; cannot be used together with `speaker_options`. See [Set number of speakers expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) for more details.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("speakers_expected")] @@ -276,7 +276,7 @@ public sealed partial class TranscriptOptionalParams public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? SpeechUnderstanding { get; set; } /// - /// Enable [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization), can be true or false. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details.
+ /// Enable [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization), can be true or false. Requires both `punctuate` and `format_text` to be `true`, and cannot be enabled together with `auto_chapters`. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details.
/// Note: This parameter is only supported for the Universal-2 model.
/// Default Value: false ///
@@ -285,7 +285,7 @@ public sealed partial class TranscriptOptionalParams public bool? Summarization { get; set; } /// - /// The model to summarize the transcript. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details.
+ /// The model to summarize the transcript. Must be set together with `summary_type`. Compatibility - `catchy` supports `gist` and `headline`; `informative` and `conversational` support `headline`, `paragraph`, `bullets`, and `bullets_verbose`. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details.
/// Default Value: informative ///
[global::System.Text.Json.Serialization.JsonPropertyName("summary_model")] @@ -293,7 +293,7 @@ public sealed partial class TranscriptOptionalParams public global::AssemblyAI.SummaryModel? SummaryModel { get; set; } /// - /// The type of summary. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details.
+ /// The type of summary. Must be set together with `summary_model`; see `summary_model` for the supported model and type combinations. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details.
/// Default Value: bullets ///
[global::System.Text.Json.Serialization.JsonPropertyName("summary_type")] @@ -301,9 +301,9 @@ public sealed partial class TranscriptOptionalParams public global::AssemblyAI.SummaryType? SummaryType { get; set; } /// - /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
+ /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. By default, all inline annotations are removed.
/// Note: This parameter is only supported for the Universal-3.5 Pro model.
- /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// Default Value: all ///
[global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] @@ -311,21 +311,21 @@ public sealed partial class TranscriptOptionalParams /// /// Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3.5 Pro model.
- /// Default Value: 0 + /// Note: This parameter only takes effect on the Universal-3.5 Pro model.
+ /// Default Value: 0.0 ///
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")] public double? Temperature { get; set; } /// - /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests
+ /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. Must be 1-1000 characters and contain only ASCII letters, numbers, hyphens, and underscores. Requires `webhook_auth_header_value` and `webhook_url` to also be set.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth_header_name")] public string? WebhookAuthHeaderName { get; set; } /// - /// The header value to send back with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests for added security
+ /// The header value to send back with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests for added security. Must be 1-1000 characters and must not contain carriage returns or newlines. Requires `webhook_auth_header_name` and `webhook_url` to also be set.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("webhook_auth_header_value")] @@ -383,11 +383,11 @@ public sealed partial class TranscriptOptionalParams /// Default Value: false /// /// - /// The confidence threshold for the [Content Moderation](https://www.assemblyai.com/docs/content-moderation) model. Values must be between 25 and 100.
+ /// The confidence threshold for the [Content Moderation](https://www.assemblyai.com/docs/content-moderation) model. Values must be between 25 and 100. Requires `content_safety` to be enabled; otherwise it's ignored.
/// Default Value: 50 /// /// - /// Customize how words are spelled and formatted using to and from values. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. + /// Customize how words are spelled and formatted using to and from values. Each `to` value must be a single word, and each `from` phrase can contain at most 5 words. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. /// /// /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2.
@@ -395,7 +395,7 @@ public sealed partial class TranscriptOptionalParams /// /// /// Enable domain-specific transcription models to improve accuracy for specialized terminology. Set to `"medical-v1"` to enable [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) for improved accuracy of medical terms such as medications, procedures, conditions, and dosages.
- /// Supported languages: English (`en`), Spanish (`es`), German (`de`), French (`fr`). If used with an unsupported language, the parameter is ignored and a warning is returned.
+ /// Supported languages: English (`en`), Spanish (`es`), German (`de`), French (`fr`). If `medical-v1` is used with an unsupported language, the parameter is ignored and a warning is returned.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// @@ -452,11 +452,11 @@ public sealed partial class TranscriptOptionalParams /// Default Value: true /// /// - /// Redact PII from the transcribed text using the Redact PII model, can be true or false. See [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
+ /// Redact PII from the transcribed text using the Redact PII model, can be true or false. Requires `format_text` to be `true`. See [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
/// Default Value: false /// /// - /// Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details.
+ /// Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. Requires `redact_pii` to be `true`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details.
/// Default Value: false /// /// @@ -471,7 +471,7 @@ public sealed partial class TranscriptOptionalParams /// The list of PII Redaction policies to enable. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. /// /// - /// The replacement logic for detected PII, can be `entity_type` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
+ /// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details.
/// Default Value: hash /// /// @@ -481,21 +481,21 @@ public sealed partial class TranscriptOptionalParams /// /// /// A map of user-defined terms to redact, where each key is a redaction label and each value is a list of exact terms to match (e.g. `{ "INTERNAL_TOOL": ["Bearclaw", "Cubclaw"] }`). Each matching term in the transcript is redacted using the `redact_pii_sub` substitution, on top of standard PII Redaction. Useful for redacting specific, predefined terms (proprietary names, internal codenames) that aren't general PII categories.
- /// This is a literal find-and-replace (tolerant of casing, surrounding punctuation, and minor spacing/hyphenation), not a model — it does not generalize beyond the terms you provide. Requires `redact_pii` to be `true`, otherwise a 400 error is returned. When `redact_pii_audio` is enabled, matched terms are also redacted in the audio output. See [Static Entity Redaction](https://www.assemblyai.com/docs/guardrails/redact-pii-from-transcripts#static-entity-redaction) for more details. + /// This is a literal find-and-replace (tolerant of casing, surrounding punctuation, and minor spacing/hyphenation), not a model — it does not generalize beyond the terms you provide. Requires `redact_pii` to be `true`, otherwise a 400 error is returned. When `redact_pii_audio` is enabled, matched terms are also redacted in the audio output. You can provide up to 100 labels, each with up to 200 terms of at most 200 characters; a label may contain only letters, numbers, spaces, underscores, and hyphens (max 80 characters). See [Static Entity Redaction](https://www.assemblyai.com/docs/guardrails/redact-pii-from-transcripts#static-entity-redaction) for more details. /// /// - /// Enable [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis), can be true or false
+ /// Enable [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis), can be true or false. Requires `punctuate` to be `true`.
/// Default Value: false /// /// - /// Enable [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), can be true or false
+ /// Enable [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), can be true or false. Requires `punctuate` to be `true`.
/// Default Value: false /// /// - /// Specify options for [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). Use this to set a range of possible speakers. + /// Specify options for [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). Use this to set a range of possible speakers. Requires `speaker_labels` to be `true`, and cannot be used together with `speakers_expected`. When both bounds are set, `min_speakers_expected` must be less than or equal to `max_speakers_expected`. /// /// - /// Tells the speaker label model how many speakers it should attempt to identify. See [Set number of speakers expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) for more details.
+ /// Tells the speaker label model how many speakers it should attempt to identify. Requires `speaker_labels` to be `true` and must be a positive integer; cannot be used together with `speaker_options`. See [Set number of speakers expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) for more details.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// @@ -511,21 +511,21 @@ public sealed partial class TranscriptOptionalParams /// Enable speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). See the task-specific docs for available options and configuration. /// /// - /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
+ /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. By default, all inline annotations are removed.
/// Note: This parameter is only supported for the Universal-3.5 Pro model.
- /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + /// Default Value: all /// /// /// Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3.5 Pro model.
- /// Default Value: 0 + /// Note: This parameter only takes effect on the Universal-3.5 Pro model.
+ /// Default Value: 0.0 /// /// - /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests
+ /// The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. Must be 1-1000 characters and contain only ASCII letters, numbers, hyphens, and underscores. Requires `webhook_auth_header_value` and `webhook_url` to also be set.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// - /// The header value to send back with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests for added security
+ /// The header value to send back with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests for added security. Must be 1-1000 characters and must not contain carriage returns or newlines. Requires `webhook_auth_header_name` and `webhook_url` to also be set.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// @@ -542,7 +542,7 @@ public TranscriptOptionalParams( int? contentSafetyConfidence, global::System.Collections.Generic.IList? customSpelling, bool? disfluencies, - global::AssemblyAI.OneOf? domain, + global::AssemblyAI.TranscriptOptionalParamsDomain? domain, bool? entityDetection, bool? filterProfanity, bool? formatText, diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsDomain.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsDomain.g.cs new file mode 100644 index 0000000..38d4d14 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsDomain.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Enable domain-specific transcription models to improve accuracy for specialized terminology. Set to `"medical-v1"` to enable [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) for improved accuracy of medical terms such as medications, procedures, conditions, and dosages.
+ /// Supported languages: English (`en`), Spanish (`es`), German (`de`), French (`fr`). If `medical-v1` is used with an unsupported language, the parameter is ignored and a warning is returned.
+ /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 + ///
+ public enum TranscriptOptionalParamsDomain + { + /// + /// //www.assemblyai.com/docs/pre-recorded-audio/medical-mode) for improved accuracy of medical terms such as medications, procedures, conditions, and dosages. + /// + MedicalV1, + /// + /// + /// + OpenapiJsonNullSentinelValue2bf936000fe44250987aE5ddb203e464, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TranscriptOptionalParamsDomainExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TranscriptOptionalParamsDomain value) + { + return value switch + { + TranscriptOptionalParamsDomain.MedicalV1 => "medical-v1", + TranscriptOptionalParamsDomain.OpenapiJsonNullSentinelValue2bf936000fe44250987aE5ddb203e464 => "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TranscriptOptionalParamsDomain? ToEnum(string value) + { + return value switch + { + "medical-v1" => TranscriptOptionalParamsDomain.MedicalV1, + "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464" => TranscriptOptionalParamsDomain.OpenapiJsonNullSentinelValue2bf936000fe44250987aE5ddb203e464, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs index cf6c7c8..09e8c2f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactPiiAudioOptions.g.cs @@ -9,7 +9,7 @@ namespace AssemblyAI public sealed partial class TranscriptOptionalParamsRedactPiiAudioOptions { /// - /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
+ /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`. Requires `redact_pii_audio` to be `true`.
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("return_redacted_no_speech_audio")] @@ -32,7 +32,7 @@ public sealed partial class TranscriptOptionalParamsRedactPiiAudioOptions /// Initializes a new instance of the class. ///
/// - /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
+ /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`. Requires `redact_pii_audio` to be `true`.
/// Default Value: false /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactStaticEntities.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactStaticEntities.g.cs index 7a22af0..fee972a 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactStaticEntities.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsRedactStaticEntities.g.cs @@ -5,7 +5,7 @@ namespace AssemblyAI { /// /// A map of user-defined terms to redact, where each key is a redaction label and each value is a list of exact terms to match (e.g. `{ "INTERNAL_TOOL": ["Bearclaw", "Cubclaw"] }`). Each matching term in the transcript is redacted using the `redact_pii_sub` substitution, on top of standard PII Redaction. Useful for redacting specific, predefined terms (proprietary names, internal codenames) that aren't general PII categories.
- /// This is a literal find-and-replace (tolerant of casing, surrounding punctuation, and minor spacing/hyphenation), not a model — it does not generalize beyond the terms you provide. Requires `redact_pii` to be `true`, otherwise a 400 error is returned. When `redact_pii_audio` is enabled, matched terms are also redacted in the audio output. See [Static Entity Redaction](https://www.assemblyai.com/docs/guardrails/redact-pii-from-transcripts#static-entity-redaction) for more details. + /// This is a literal find-and-replace (tolerant of casing, surrounding punctuation, and minor spacing/hyphenation), not a model — it does not generalize beyond the terms you provide. Requires `redact_pii` to be `true`, otherwise a 400 error is returned. When `redact_pii_audio` is enabled, matched terms are also redacted in the audio output. You can provide up to 100 labels, each with up to 200 terms of at most 200 characters; a label may contain only letters, numbers, spaces, underscores, and hyphens (max 80 characters). See [Static Entity Redaction](https://www.assemblyai.com/docs/guardrails/redact-pii-from-transcripts#static-entity-redaction) for more details. ///
public sealed partial class TranscriptOptionalParamsRedactStaticEntities { diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs index f623934..57a11f0 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs @@ -4,13 +4,12 @@ namespace AssemblyAI { /// - /// Specify options for [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). Use this to set a range of possible speakers. + /// Specify options for [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). Use this to set a range of possible speakers. Requires `speaker_labels` to be `true`, and cannot be used together with `speakers_expected`. When both bounds are set, `min_speakers_expected` must be less than or equal to `max_speakers_expected`. /// public sealed partial class TranscriptOptionalParamsSpeakerOptions { /// - /// A hard lower limit on the number of speaker labels — the model won't return fewer speakers than this. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.
- /// Default Value: 1 + /// A hard lower limit on the number of speaker labels — the model won't return fewer speakers than this. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. ///
[global::System.Text.Json.Serialization.JsonPropertyName("min_speakers_expected")] public int? MinSpeakersExpected { get; set; } @@ -32,8 +31,7 @@ public sealed partial class TranscriptOptionalParamsSpeakerOptions /// Initializes a new instance of the class. /// /// - /// A hard lower limit on the number of speaker labels — the model won't return fewer speakers than this. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.
- /// Default Value: 1 + /// A hard lower limit on the number of speaker labels — the model won't return fewer speakers than this. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. /// /// /// <Warning>Setting this parameter too high may hurt model accuracy</Warning>
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs index 973d92a..97c299c 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptRedactPiiAudioOptions.g.cs @@ -10,7 +10,7 @@ namespace AssemblyAI public sealed partial class TranscriptRedactPiiAudioOptions { /// - /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
+ /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`. Requires `redact_pii_audio` to be `true`.
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("return_redacted_no_speech_audio")] @@ -33,7 +33,7 @@ public sealed partial class TranscriptRedactPiiAudioOptions /// Initializes a new instance of the class. /// /// - /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`.
+ /// By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`. Requires `redact_pii_audio` to be `true`.
/// Default Value: false /// /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs index abb74c3..423badd 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptUtterance.g.cs @@ -5,7 +5,7 @@ namespace AssemblyAI { /// /// Utterance
- /// Example: {"confidence":0.9359033333333334,"end":26950,"speaker":"A","start":250,"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97503,"speaker":"A"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"A"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99843,"speaker":"A"},{"text":"of","start":1434,"end":1614,"confidence":0.85,"speaker":"A"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89657,"speaker":"A"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"A"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93864,"speaker":"A"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"A"},{"text":"triggering","start":3492,"end":3946,"confidence":0.75366,"speaker":"A"},{"text":"air","start":3978,"end":4174,"confidence":1,"speaker":"A"},{"text":"quality","start":4212,"end":4558,"confidence":0.87745,"speaker":"A"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94739,"speaker":"A"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"A"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"A"},{"text":"US.","start":5732,"end":6382,"confidence":0.88,"speaker":"A"}]} + /// Example: {"confidence":0.9359033333333334,"end":26950,"speaker":"A","start":250,"text":"Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor.","words":[{"text":"Smoke","start":250,"end":650,"confidence":0.97503,"speaker":"A"},{"text":"from","start":730,"end":1022,"confidence":0.99999,"speaker":"A"},{"text":"hundreds","start":1076,"end":1418,"confidence":0.99843,"speaker":"A"},{"text":"of","start":1434,"end":1614,"confidence":0.85,"speaker":"A"},{"text":"wildfires","start":1652,"end":2346,"confidence":0.89657,"speaker":"A"},{"text":"in","start":2378,"end":2526,"confidence":0.99994,"speaker":"A"},{"text":"Canada","start":2548,"end":3130,"confidence":0.93864,"speaker":"A"},{"text":"is","start":3210,"end":3454,"confidence":0.999,"speaker":"A"},{"text":"triggering","start":3492,"end":3946,"confidence":0.75366,"speaker":"A"},{"text":"air","start":3978,"end":4174,"confidence":1.0,"speaker":"A"},{"text":"quality","start":4212,"end":4558,"confidence":0.87745,"speaker":"A"},{"text":"alerts","start":4644,"end":5114,"confidence":0.94739,"speaker":"A"},{"text":"throughout","start":5162,"end":5466,"confidence":0.99726,"speaker":"A"},{"text":"the","start":5498,"end":5694,"confidence":0.79,"speaker":"A"},{"text":"US.","start":5732,"end":6382,"confidence":0.88,"speaker":"A"}]} ///
public sealed partial class TranscriptUtterance { diff --git a/src/libs/AssemblyAI/Generated/autosdk.generated-examples.json b/src/libs/AssemblyAI/Generated/autosdk.generated-examples.json index a5bac16..0b75d67 100644 --- a/src/libs/AssemblyAI/Generated/autosdk.generated-examples.json +++ b/src/libs/AssemblyAI/Generated/autosdk.generated-examples.json @@ -94,7 +94,7 @@ "Slug": "createtranscript", "Description": "\u003CNote\u003ETo use our EU server for transcription, replace \u0060api.assemblyai.com\u0060 with \u0060api.eu.assemblyai.com\u0060.\u003C/Note\u003E\n\u003CTip\u003EBuilding a load test or submitting a large batch? [See our guide \u2192](/pre-recorded-audio/guides/bulk-transcription-and-load-tests-at-scale)\u003C/Tip\u003E\nCreate a transcript from a media file that is accessible via a URL.", "Language": "csharp", - "Code": "using var client = new AssemblyAIClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::AssemblyAI.TranscriptParams\u003E(\n @\u0022{\n \u0022\u0022speech_model\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022language_code\u0022\u0022: \u0022\u0022en_us\u0022\u0022,\n \u0022\u0022language_detection\u0022\u0022: true,\n \u0022\u0022language_confidence_threshold\u0022\u0022: 0.7,\n \u0022\u0022audio_url\u0022\u0022: \u0022\u0022https://assembly.ai/wildfires.mp3\u0022\u0022,\n \u0022\u0022punctuate\u0022\u0022: true,\n \u0022\u0022format_text\u0022\u0022: true,\n \u0022\u0022multichannel\u0022\u0022: true,\n \u0022\u0022webhook_url\u0022\u0022: \u0022\u0022https://your-webhook-url/path\u0022\u0022,\n \u0022\u0022webhook_auth_header_name\u0022\u0022: \u0022\u0022webhook-secret\u0022\u0022,\n \u0022\u0022webhook_auth_header_value\u0022\u0022: \u0022\u0022webhook-secret-value\u0022\u0022,\n \u0022\u0022auto_highlights\u0022\u0022: true,\n \u0022\u0022audio_start_from\u0022\u0022: 10,\n \u0022\u0022audio_end_at\u0022\u0022: 280,\n \u0022\u0022filter_profanity\u0022\u0022: true,\n \u0022\u0022redact_pii\u0022\u0022: true,\n \u0022\u0022redact_pii_audio\u0022\u0022: true,\n \u0022\u0022redact_pii_audio_quality\u0022\u0022: \u0022\u0022mp3\u0022\u0022,\n \u0022\u0022redact_pii_policies\u0022\u0022: [\n \u0022\u0022us_social_security_number\u0022\u0022,\n \u0022\u0022credit_card_number\u0022\u0022\n ],\n \u0022\u0022redact_pii_sub\u0022\u0022: \u0022\u0022hash\u0022\u0022,\n \u0022\u0022speaker_labels\u0022\u0022: true,\n \u0022\u0022speakers_expected\u0022\u0022: 2,\n \u0022\u0022content_safety\u0022\u0022: true,\n \u0022\u0022iab_categories\u0022\u0022: true,\n \u0022\u0022custom_spelling\u0022\u0022: [],\n \u0022\u0022disfluencies\u0022\u0022: false,\n \u0022\u0022sentiment_analysis\u0022\u0022: true,\n \u0022\u0022auto_chapters\u0022\u0022: false,\n \u0022\u0022entity_detection\u0022\u0022: true,\n \u0022\u0022speech_threshold\u0022\u0022: 0.5,\n \u0022\u0022summarization\u0022\u0022: false,\n \u0022\u0022summary_model\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022summary_type\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022custom_topics\u0022\u0022: true,\n \u0022\u0022topics\u0022\u0022: [],\n \u0022\u0022remove_audio_tags\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022domain\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022speech_understanding\u0022\u0022: {\n \u0022\u0022request\u0022\u0022: {\n \u0022\u0022translation\u0022\u0022: {\n \u0022\u0022target_languages\u0022\u0022: [\n \u0022\u0022es\u0022\u0022,\n \u0022\u0022de\u0022\u0022\n ],\n \u0022\u0022formal\u0022\u0022: true,\n \u0022\u0022match_original_utterance\u0022\u0022: true\n }\n }\n }\n}\u0022)!;\n\nvar response = await client.Transcripts.SubmitAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022id\u0022: \u00229ea68fd3-f953-42c1-9742-976c447fb463\u0022,\n// \u0022speech_model\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022language_model\u0022: \u0022assemblyai_default\u0022,\n// \u0022acoustic_model\u0022: \u0022assemblyai_default\u0022,\n// \u0022language_code\u0022: \u0022en_us\u0022,\n// \u0022language_detection\u0022: true,\n// \u0022language_confidence_threshold\u0022: 0.7,\n// \u0022language_confidence\u0022: 0.9959,\n// \u0022status\u0022: \u0022completed\u0022,\n// \u0022audio_url\u0022: \u0022https://assembly.ai/wildfires.mp3\u0022,\n// \u0022text\u0022: \u0022Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning. What is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there\\u0027s a couple of things. The season has been pretty dry already. And then the fact that we\\u0027re getting hit in the US. Is because there\\u0027s a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there. So what is it in this haze that makes it harmful? And I\\u0027m assuming it is harmful. It is. The levels outside right now in Baltimore are considered unhealthy. And most of that is due to what\\u0027s called particulate matter, which are tiny particles, microscopic smaller than the width of your hair that can get into your lungs and impact your respiratory system, your cardiovascular system, and even your neurological your brain. What makes this particularly harmful? Is it the volume of particulant? Is it something in particular? What is it exactly? Can you just drill down on that a little bit more? Yeah. So the concentration of particulate matter I was looking at some of the monitors that we have was reaching levels of what are, in science, big 150 micrograms per meter cubed, which is more than ten times what the annual average should be and about four times higher than what you\\u0027re supposed to have on a 24 hours average. And so the concentrations of these particles in the air are just much, much higher than we typically see. And exposure to those high levels can lead to a host of health problems. And who is most vulnerable? I noticed that in New York City, for example, they\\u0027re canceling outdoor activities. And so here it is in the early days of summer, and they have to keep all the kids inside. So who tends to be vulnerable in a situation like this? It\\u0027s the youngest. So children, obviously, whose bodies are still developing. The elderly, who are their bodies are more in decline and they\\u0027re more susceptible to the health impacts of breathing, the poor air quality. And then people who have preexisting health conditions, people with respiratory conditions or heart conditions can be triggered by high levels of air pollution. Could this get worse? That\\u0027s a good question. In some areas, it\\u0027s much worse than others. And it just depends on kind of where the smoke is concentrated. I think New York has some of the higher concentrations right now, but that\\u0027s going to change as that air moves away from the New York area. But over the course of the next few days, we will see different areas being hit at different times with the highest concentrations. I was going to ask you about more fires start burning. I don\\u0027t expect the concentrations to go up too much higher. I was going to ask you how and you started to answer this, but how much longer could this last? Or forgive me if I\\u0027m asking you to speculate, but what do you think? Well, I think the fires are going to burn for a little bit longer, but the key for us in the US. Is the weather system changing. And so right now, it\\u0027s kind of the weather systems that are pulling that air into our mid Atlantic and Northeast region. As those weather systems change and shift, we\\u0027ll see that smoke going elsewhere and not impact us in this region as much. And so I think that\\u0027s going to be the defining factor. And I think the next couple of days we\\u0027re going to see a shift in that weather pattern and start to push the smoke away from where we are. And finally, with the impacts of climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences or circumstances? I mean, that is one of the predictions for climate change. Looking into the future, the fire season is starting earlier and lasting longer, and we\\u0027re seeing more frequent fires. So, yeah, this is probably something that we\\u0027ll be seeing more frequently. This tends to be much more of an issue in the Western US. So the eastern US. Getting hit right now is a little bit new. But yeah, I think with climate change moving forward, this is something that is going to happen more frequently. That\\u0027s Peter De Carlo, associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Sergeant Carlo, thanks so much for joining us and sharing this expertise with us. Thank you for having me.\u0022,\n// \u0022words\u0022: [\n// {\n// \u0022text\u0022: \u0022Smoke\u0022,\n// \u0022start\u0022: 250,\n// \u0022end\u0022: 650,\n// \u0022confidence\u0022: 0.97465,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022from\u0022,\n// \u0022start\u0022: 730,\n// \u0022end\u0022: 1022,\n// \u0022confidence\u0022: 0.99999,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022hundreds\u0022,\n// \u0022start\u0022: 1076,\n// \u0022end\u0022: 1418,\n// \u0022confidence\u0022: 0.99844,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022of\u0022,\n// \u0022start\u0022: 1434,\n// \u0022end\u0022: 1614,\n// \u0022confidence\u0022: 0.84,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022wildfires\u0022,\n// \u0022start\u0022: 1652,\n// \u0022end\u0022: 2346,\n// \u0022confidence\u0022: 0.89572,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022in\u0022,\n// \u0022start\u0022: 2378,\n// \u0022end\u0022: 2526,\n// \u0022confidence\u0022: 0.99994,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022Canada\u0022,\n// \u0022start\u0022: 2548,\n// \u0022end\u0022: 3130,\n// \u0022confidence\u0022: 0.93953,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022is\u0022,\n// \u0022start\u0022: 3210,\n// \u0022end\u0022: 3454,\n// \u0022confidence\u0022: 0.999,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022triggering\u0022,\n// \u0022start\u0022: 3492,\n// \u0022end\u0022: 3946,\n// \u0022confidence\u0022: 0.74794,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022air\u0022,\n// \u0022start\u0022: 3978,\n// \u0022end\u0022: 4174,\n// \u0022confidence\u0022: 1,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022quality\u0022,\n// \u0022start\u0022: 4212,\n// \u0022end\u0022: 4558,\n// \u0022confidence\u0022: 0.88077,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022alerts\u0022,\n// \u0022start\u0022: 4644,\n// \u0022end\u0022: 5114,\n// \u0022confidence\u0022: 0.94814,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022throughout\u0022,\n// \u0022start\u0022: 5162,\n// \u0022end\u0022: 5466,\n// \u0022confidence\u0022: 0.99726,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022the\u0022,\n// \u0022start\u0022: 5498,\n// \u0022end\u0022: 5694,\n// \u0022confidence\u0022: 0.79,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022US.\u0022,\n// \u0022start\u0022: 5732,\n// \u0022end\u0022: 6382,\n// \u0022confidence\u0022: 0.89,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// }\n// ],\n// \u0022utterances\u0022: [\n// {\n// \u0022confidence\u0022: 0.9359033333333334,\n// \u0022end\u0022: 26950,\n// \u0022speaker\u0022: \u0022A\u0022,\n// \u0022start\u0022: 250,\n// \u0022text\u0022: \u0022Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor.\u0022,\n// \u0022words\u0022: [\n// {\n// \u0022text\u0022: \u0022Smoke\u0022,\n// \u0022start\u0022: 250,\n// \u0022end\u0022: 650,\n// \u0022confidence\u0022: 0.97503,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022from\u0022,\n// \u0022start\u0022: 730,\n// \u0022end\u0022: 1022,\n// \u0022confidence\u0022: 0.99999,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022hundreds\u0022,\n// \u0022start\u0022: 1076,\n// \u0022end\u0022: 1418,\n// \u0022confidence\u0022: 0.99843,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022of\u0022,\n// \u0022start\u0022: 1434,\n// \u0022end\u0022: 1614,\n// \u0022confidence\u0022: 0.85,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022wildfires\u0022,\n// \u0022start\u0022: 1652,\n// \u0022end\u0022: 2346,\n// \u0022confidence\u0022: 0.89657,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022in\u0022,\n// \u0022start\u0022: 2378,\n// \u0022end\u0022: 2526,\n// \u0022confidence\u0022: 0.99994,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022Canada\u0022,\n// \u0022start\u0022: 2548,\n// \u0022end\u0022: 3130,\n// \u0022confidence\u0022: 0.93864,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022is\u0022,\n// \u0022start\u0022: 3210,\n// \u0022end\u0022: 3454,\n// \u0022confidence\u0022: 0.999,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022triggering\u0022,\n// \u0022start\u0022: 3492,\n// \u0022end\u0022: 3946,\n// \u0022confidence\u0022: 0.75366,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022air\u0022,\n// \u0022start\u0022: 3978,\n// \u0022end\u0022: 4174,\n// \u0022confidence\u0022: 1,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022quality\u0022,\n// \u0022start\u0022: 4212,\n// \u0022end\u0022: 4558,\n// \u0022confidence\u0022: 0.87745,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022alerts\u0022,\n// \u0022start\u0022: 4644,\n// \u0022end\u0022: 5114,\n// \u0022confidence\u0022: 0.94739,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022throughout\u0022,\n// \u0022start\u0022: 5162,\n// \u0022end\u0022: 5466,\n// \u0022confidence\u0022: 0.99726,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022the\u0022,\n// \u0022start\u0022: 5498,\n// \u0022end\u0022: 5694,\n// \u0022confidence\u0022: 0.79,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022US.\u0022,\n// \u0022start\u0022: 5732,\n// \u0022end\u0022: 6382,\n// \u0022confidence\u0022: 0.88,\n// \u0022speaker\u0022: \u0022A\u0022\n// }\n// ]\n// }\n// ],\n// \u0022confidence\u0022: 0.9404651451800253,\n// \u0022audio_duration\u0022: 281,\n// \u0022punctuate\u0022: true,\n// \u0022format_text\u0022: true,\n// \u0022multichannel\u0022: false,\n// \u0022webhook_url\u0022: \u0022https://your-webhook-url.tld/path\u0022,\n// \u0022webhook_status_code\u0022: 200,\n// \u0022webhook_auth\u0022: true,\n// \u0022webhook_auth_header_name\u0022: \u0022webhook-secret\u0022,\n// \u0022auto_highlights_result\u0022: {\n// \u0022status\u0022: \u0022success\u0022,\n// \u0022results\u0022: [\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.08,\n// \u0022text\u0022: \u0022air quality alerts\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 3978,\n// \u0022end\u0022: 5114\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.08,\n// \u0022text\u0022: \u0022wide ranging air quality consequences\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 235388,\n// \u0022end\u0022: 238694\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.07,\n// \u0022text\u0022: \u0022more wildfires\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 230972,\n// \u0022end\u0022: 232354\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.07,\n// \u0022text\u0022: \u0022air pollution\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 156004,\n// \u0022end\u0022: 156910\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 3,\n// \u0022rank\u0022: 0.07,\n// \u0022text\u0022: \u0022weather systems\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 47344,\n// \u0022end\u0022: 47958\n// },\n// {\n// \u0022start\u0022: 205268,\n// \u0022end\u0022: 205818\n// },\n// {\n// \u0022start\u0022: 211588,\n// \u0022end\u0022: 213434\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 2,\n// \u0022rank\u0022: 0.06,\n// \u0022text\u0022: \u0022high levels\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 121128,\n// \u0022end\u0022: 121646\n// },\n// {\n// \u0022start\u0022: 155412,\n// \u0022end\u0022: 155866\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.06,\n// \u0022text\u0022: \u0022health conditions\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 152138,\n// \u0022end\u0022: 152666\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 2,\n// \u0022rank\u0022: 0.06,\n// \u0022text\u0022: \u0022Peter de Carlo\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 18948,\n// \u0022end\u0022: 19930\n// },\n// {\n// \u0022start\u0022: 268298,\n// \u0022end\u0022: 269194\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.06,\n// \u0022text\u0022: \u0022New York City\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 125768,\n// \u0022end\u0022: 126274\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022respiratory conditions\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 152964,\n// \u0022end\u0022: 153786\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 3,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022New York\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 125768,\n// \u0022end\u0022: 126034\n// },\n// {\n// \u0022start\u0022: 171448,\n// \u0022end\u0022: 171938\n// },\n// {\n// \u0022start\u0022: 176008,\n// \u0022end\u0022: 176322\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 3,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022climate change\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 229548,\n// \u0022end\u0022: 230230\n// },\n// {\n// \u0022start\u0022: 244576,\n// \u0022end\u0022: 245162\n// },\n// {\n// \u0022start\u0022: 263348,\n// \u0022end\u0022: 263950\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022Johns Hopkins University Varsity\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 23972,\n// \u0022end\u0022: 25490\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022heart conditions\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 153988,\n// \u0022end\u0022: 154506\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022air quality warnings\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 12308,\n// \u0022end\u0022: 13434\n// }\n// ]\n// }\n// ]\n// },\n// \u0022auto_highlights\u0022: true,\n// \u0022audio_start_from\u0022: 10,\n// \u0022audio_end_at\u0022: 280,\n// \u0022filter_profanity\u0022: true,\n// \u0022redact_pii\u0022: true,\n// \u0022redact_pii_audio\u0022: true,\n// \u0022redact_pii_audio_quality\u0022: \u0022mp3\u0022,\n// \u0022redact_pii_policies\u0022: [\n// \u0022us_social_security_number\u0022,\n// \u0022credit_card_number\u0022\n// ],\n// \u0022redact_pii_sub\u0022: \u0022hash\u0022,\n// \u0022speaker_labels\u0022: true,\n// \u0022content_safety\u0022: true,\n// \u0022iab_categories\u0022: true,\n// \u0022content_safety_labels\u0022: {\n// \u0022status\u0022: \u0022success\u0022,\n// \u0022results\u0022: [\n// {\n// \u0022text\u0022: \u0022Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.\u0022,\n// \u0022labels\u0022: [\n// {\n// \u0022label\u0022: \u0022disasters\u0022,\n// \u0022confidence\u0022: 0.8142836093902588,\n// \u0022severity\u0022: 0.4093044400215149\n// }\n// ],\n// \u0022sentences_idx_start\u0022: 0,\n// \u0022sentences_idx_end\u0022: 5,\n// \u0022timestamp\u0022: {\n// \u0022start\u0022: 250,\n// \u0022end\u0022: 28840\n// }\n// }\n// ],\n// \u0022summary\u0022: {\n// \u0022disasters\u0022: 0.9940800441842205,\n// \u0022health_issues\u0022: 0.9216489289040967\n// },\n// \u0022severity_score_summary\u0022: {\n// \u0022disasters\u0022: {\n// \u0022low\u0022: 0.5733263024656846,\n// \u0022medium\u0022: 0.42667369753431533,\n// \u0022high\u0022: 0\n// },\n// \u0022health_issues\u0022: {\n// \u0022low\u0022: 0.22863814977924785,\n// \u0022medium\u0022: 0.45014154926938227,\n// \u0022high\u0022: 0.32122030095136983\n// }\n// }\n// },\n// \u0022iab_categories_result\u0022: {\n// \u0022status\u0022: \u0022success\u0022,\n// \u0022results\u0022: [\n// {\n// \u0022text\u0022: \u0022Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.\u0022,\n// \u0022labels\u0022: [\n// {\n// \u0022relevance\u0022: 0.988274097442627,\n// \u0022label\u0022: \u0022Home\\u0026Garden\\u003EIndoorEnvironmentalQuality\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.5821335911750793,\n// \u0022label\u0022: \u0022NewsAndPolitics\\u003EWeather\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0042327106930315495,\n// \u0022label\u0022: \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003ELungAndRespiratoryHealth\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0033971222583204508,\n// \u0022label\u0022: \u0022NewsAndPolitics\\u003EDisasters\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.002469958271831274,\n// \u0022label\u0022: \u0022BusinessAndFinance\\u003EBusiness\\u003EGreenSolutions\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0014376690378412604,\n// \u0022label\u0022: \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003ECancer\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0014294233405962586,\n// \u0022label\u0022: \u0022Science\\u003EEnvironment\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.001234519761055708,\n// \u0022label\u0022: \u0022Travel\\u003ETravelLocations\\u003EPolarTravel\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0010231725173071027,\n// \u0022label\u0022: \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EColdAndFlu\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0007445293595083058,\n// \u0022label\u0022: \u0022BusinessAndFinance\\u003EIndustries\\u003EPowerAndEnergyIndustry\u0022\n// }\n// ],\n// \u0022timestamp\u0022: {\n// \u0022start\u0022: 250,\n// \u0022end\u0022: 28840\n// }\n// }\n// ],\n// \u0022summary\u0022: {\n// \u0022NewsAndPolitics\\u003EWeather\u0022: 1,\n// \u0022Home\\u0026Garden\\u003EIndoorEnvironmentalQuality\u0022: 0.9043831825256348,\n// \u0022Science\\u003EEnvironment\u0022: 0.16117265820503235,\n// \u0022BusinessAndFinance\\u003EIndustries\\u003EEnvironmentalServicesIndustry\u0022: 0.14393523335456848,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003ELungAndRespiratoryHealth\u0022: 0.11401086300611496,\n// \u0022BusinessAndFinance\\u003EBusiness\\u003EGreenSolutions\u0022: 0.06348437070846558,\n// \u0022NewsAndPolitics\\u003EDisasters\u0022: 0.05041387677192688,\n// \u0022Travel\\u003ETravelLocations\\u003EPolarTravel\u0022: 0.01308488193899393,\n// \u0022HealthyLiving\u0022: 0.008222488686442375,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EColdAndFlu\u0022: 0.0022315620444715023,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EHeartAndCardiovascularDiseases\u0022: 0.00213034451007843,\n// \u0022HealthyLiving\\u003EWellness\\u003ESmokingCessation\u0022: 0.001540527562610805,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EInjuries\u0022: 0.0013950627762824297,\n// \u0022BusinessAndFinance\\u003EIndustries\\u003EPowerAndEnergyIndustry\u0022: 0.0012570273829624057,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003ECancer\u0022: 0.001097781932912767,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EAllergies\u0022: 0.0010148967849090695,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EMentalHealth\u0022: 0.000717321818228811,\n// \u0022Style\\u0026Fashion\\u003EPersonalCare\\u003EDeodorantAndAntiperspirant\u0022: 0.0006022014422342181,\n// \u0022Technology\\u0026Computing\\u003EComputing\\u003EComputerNetworking\u0022: 0.0005461975233629346,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EInjuries\\u003EFirstAid\u0022: 0.0004885646631009877\n// }\n// },\n// \u0022custom_spelling\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022throttled\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022auto_chapters\u0022: false,\n// \u0022summarization\u0022: false,\n// \u0022summary_type\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022summary_model\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022custom_topics\u0022: true,\n// \u0022topics\u0022: [],\n// \u0022speech_threshold\u0022: 0.5,\n// \u0022remove_audio_tags\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022domain\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022disfluencies\u0022: false,\n// \u0022sentiment_analysis\u0022: true,\n// \u0022sentiment_analysis_results\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022entity_detection\u0022: true,\n// \u0022entities\u0022: [\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022Canada\u0022,\n// \u0022start\u0022: 2548,\n// \u0022end\u0022: 3130\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022the US\u0022,\n// \u0022start\u0022: 5498,\n// \u0022end\u0022: 6382\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022Maine\u0022,\n// \u0022start\u0022: 7492,\n// \u0022end\u0022: 7914\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022Maryland\u0022,\n// \u0022start\u0022: 8212,\n// \u0022end\u0022: 8634\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022Minnesota\u0022,\n// \u0022start\u0022: 8932,\n// \u0022end\u0022: 9578\n// },\n// {\n// \u0022entity_type\u0022: \u0022person_name\u0022,\n// \u0022text\u0022: \u0022Peter de Carlo\u0022,\n// \u0022start\u0022: 18948,\n// \u0022end\u0022: 19930\n// },\n// {\n// \u0022entity_type\u0022: \u0022occupation\u0022,\n// \u0022text\u0022: \u0022associate professor\u0022,\n// \u0022start\u0022: 20292,\n// \u0022end\u0022: 21194\n// },\n// {\n// \u0022entity_type\u0022: \u0022organization\u0022,\n// \u0022text\u0022: \u0022Department of Environmental Health and Engineering\u0022,\n// \u0022start\u0022: 21508,\n// \u0022end\u0022: 23706\n// },\n// {\n// \u0022entity_type\u0022: \u0022organization\u0022,\n// \u0022text\u0022: \u0022Johns Hopkins University Varsity\u0022,\n// \u0022start\u0022: 23972,\n// \u0022end\u0022: 25490\n// },\n// {\n// \u0022entity_type\u0022: \u0022occupation\u0022,\n// \u0022text\u0022: \u0022professor\u0022,\n// \u0022start\u0022: 26076,\n// \u0022end\u0022: 26950\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022the US\u0022,\n// \u0022start\u0022: 45184,\n// \u0022end\u0022: 45898\n// },\n// {\n// \u0022entity_type\u0022: \u0022nationality\u0022,\n// \u0022text\u0022: \u0022Canadian\u0022,\n// \u0022start\u0022: 49728,\n// \u0022end\u0022: 50086\n// }\n// ],\n// \u0022chapters\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022summary\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022speakers_expected\u0022: 2\n// }", + "Code": "using var client = new AssemblyAIClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::AssemblyAI.TranscriptParams\u003E(\n @\u0022{\n \u0022\u0022speech_model\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022language_code\u0022\u0022: \u0022\u0022en_us\u0022\u0022,\n \u0022\u0022language_detection\u0022\u0022: true,\n \u0022\u0022language_confidence_threshold\u0022\u0022: 0.7,\n \u0022\u0022audio_url\u0022\u0022: \u0022\u0022https://assembly.ai/wildfires.mp3\u0022\u0022,\n \u0022\u0022punctuate\u0022\u0022: true,\n \u0022\u0022format_text\u0022\u0022: true,\n \u0022\u0022multichannel\u0022\u0022: true,\n \u0022\u0022webhook_url\u0022\u0022: \u0022\u0022https://your-webhook-url/path\u0022\u0022,\n \u0022\u0022webhook_auth_header_name\u0022\u0022: \u0022\u0022webhook-secret\u0022\u0022,\n \u0022\u0022webhook_auth_header_value\u0022\u0022: \u0022\u0022webhook-secret-value\u0022\u0022,\n \u0022\u0022auto_highlights\u0022\u0022: true,\n \u0022\u0022audio_start_from\u0022\u0022: 10,\n \u0022\u0022audio_end_at\u0022\u0022: 280,\n \u0022\u0022filter_profanity\u0022\u0022: true,\n \u0022\u0022redact_pii\u0022\u0022: true,\n \u0022\u0022redact_pii_audio\u0022\u0022: true,\n \u0022\u0022redact_pii_audio_quality\u0022\u0022: \u0022\u0022mp3\u0022\u0022,\n \u0022\u0022redact_pii_policies\u0022\u0022: [\n \u0022\u0022us_social_security_number\u0022\u0022,\n \u0022\u0022credit_card_number\u0022\u0022\n ],\n \u0022\u0022redact_pii_sub\u0022\u0022: \u0022\u0022hash\u0022\u0022,\n \u0022\u0022speaker_labels\u0022\u0022: true,\n \u0022\u0022speakers_expected\u0022\u0022: 2,\n \u0022\u0022content_safety\u0022\u0022: true,\n \u0022\u0022iab_categories\u0022\u0022: true,\n \u0022\u0022custom_spelling\u0022\u0022: [],\n \u0022\u0022disfluencies\u0022\u0022: false,\n \u0022\u0022sentiment_analysis\u0022\u0022: true,\n \u0022\u0022auto_chapters\u0022\u0022: false,\n \u0022\u0022entity_detection\u0022\u0022: true,\n \u0022\u0022speech_threshold\u0022\u0022: 0.5,\n \u0022\u0022summarization\u0022\u0022: false,\n \u0022\u0022summary_model\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022summary_type\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022custom_topics\u0022\u0022: true,\n \u0022\u0022topics\u0022\u0022: [],\n \u0022\u0022remove_audio_tags\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022domain\u0022\u0022: \u0022\u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\u0022,\n \u0022\u0022speech_understanding\u0022\u0022: {\n \u0022\u0022request\u0022\u0022: {\n \u0022\u0022translation\u0022\u0022: {\n \u0022\u0022target_languages\u0022\u0022: [\n \u0022\u0022es\u0022\u0022,\n \u0022\u0022de\u0022\u0022\n ],\n \u0022\u0022formal\u0022\u0022: true,\n \u0022\u0022match_original_utterance\u0022\u0022: true\n }\n }\n }\n}\u0022)!;\n\nvar response = await client.Transcripts.SubmitAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022id\u0022: \u00229ea68fd3-f953-42c1-9742-976c447fb463\u0022,\n// \u0022speech_model\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022language_model\u0022: \u0022assemblyai_default\u0022,\n// \u0022acoustic_model\u0022: \u0022assemblyai_default\u0022,\n// \u0022language_code\u0022: \u0022en_us\u0022,\n// \u0022language_detection\u0022: true,\n// \u0022language_confidence_threshold\u0022: 0.7,\n// \u0022language_confidence\u0022: 0.9959,\n// \u0022status\u0022: \u0022completed\u0022,\n// \u0022audio_url\u0022: \u0022https://assembly.ai/wildfires.mp3\u0022,\n// \u0022text\u0022: \u0022Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning. What is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there\\u0027s a couple of things. The season has been pretty dry already. And then the fact that we\\u0027re getting hit in the US. Is because there\\u0027s a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there. So what is it in this haze that makes it harmful? And I\\u0027m assuming it is harmful. It is. The levels outside right now in Baltimore are considered unhealthy. And most of that is due to what\\u0027s called particulate matter, which are tiny particles, microscopic smaller than the width of your hair that can get into your lungs and impact your respiratory system, your cardiovascular system, and even your neurological your brain. What makes this particularly harmful? Is it the volume of particulant? Is it something in particular? What is it exactly? Can you just drill down on that a little bit more? Yeah. So the concentration of particulate matter I was looking at some of the monitors that we have was reaching levels of what are, in science, big 150 micrograms per meter cubed, which is more than ten times what the annual average should be and about four times higher than what you\\u0027re supposed to have on a 24 hours average. And so the concentrations of these particles in the air are just much, much higher than we typically see. And exposure to those high levels can lead to a host of health problems. And who is most vulnerable? I noticed that in New York City, for example, they\\u0027re canceling outdoor activities. And so here it is in the early days of summer, and they have to keep all the kids inside. So who tends to be vulnerable in a situation like this? It\\u0027s the youngest. So children, obviously, whose bodies are still developing. The elderly, who are their bodies are more in decline and they\\u0027re more susceptible to the health impacts of breathing, the poor air quality. And then people who have preexisting health conditions, people with respiratory conditions or heart conditions can be triggered by high levels of air pollution. Could this get worse? That\\u0027s a good question. In some areas, it\\u0027s much worse than others. And it just depends on kind of where the smoke is concentrated. I think New York has some of the higher concentrations right now, but that\\u0027s going to change as that air moves away from the New York area. But over the course of the next few days, we will see different areas being hit at different times with the highest concentrations. I was going to ask you about more fires start burning. I don\\u0027t expect the concentrations to go up too much higher. I was going to ask you how and you started to answer this, but how much longer could this last? Or forgive me if I\\u0027m asking you to speculate, but what do you think? Well, I think the fires are going to burn for a little bit longer, but the key for us in the US. Is the weather system changing. And so right now, it\\u0027s kind of the weather systems that are pulling that air into our mid Atlantic and Northeast region. As those weather systems change and shift, we\\u0027ll see that smoke going elsewhere and not impact us in this region as much. And so I think that\\u0027s going to be the defining factor. And I think the next couple of days we\\u0027re going to see a shift in that weather pattern and start to push the smoke away from where we are. And finally, with the impacts of climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences or circumstances? I mean, that is one of the predictions for climate change. Looking into the future, the fire season is starting earlier and lasting longer, and we\\u0027re seeing more frequent fires. So, yeah, this is probably something that we\\u0027ll be seeing more frequently. This tends to be much more of an issue in the Western US. So the eastern US. Getting hit right now is a little bit new. But yeah, I think with climate change moving forward, this is something that is going to happen more frequently. That\\u0027s Peter De Carlo, associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Sergeant Carlo, thanks so much for joining us and sharing this expertise with us. Thank you for having me.\u0022,\n// \u0022words\u0022: [\n// {\n// \u0022text\u0022: \u0022Smoke\u0022,\n// \u0022start\u0022: 250,\n// \u0022end\u0022: 650,\n// \u0022confidence\u0022: 0.97465,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022from\u0022,\n// \u0022start\u0022: 730,\n// \u0022end\u0022: 1022,\n// \u0022confidence\u0022: 0.99999,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022hundreds\u0022,\n// \u0022start\u0022: 1076,\n// \u0022end\u0022: 1418,\n// \u0022confidence\u0022: 0.99844,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022of\u0022,\n// \u0022start\u0022: 1434,\n// \u0022end\u0022: 1614,\n// \u0022confidence\u0022: 0.84,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022wildfires\u0022,\n// \u0022start\u0022: 1652,\n// \u0022end\u0022: 2346,\n// \u0022confidence\u0022: 0.89572,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022in\u0022,\n// \u0022start\u0022: 2378,\n// \u0022end\u0022: 2526,\n// \u0022confidence\u0022: 0.99994,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022Canada\u0022,\n// \u0022start\u0022: 2548,\n// \u0022end\u0022: 3130,\n// \u0022confidence\u0022: 0.93953,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022is\u0022,\n// \u0022start\u0022: 3210,\n// \u0022end\u0022: 3454,\n// \u0022confidence\u0022: 0.999,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022triggering\u0022,\n// \u0022start\u0022: 3492,\n// \u0022end\u0022: 3946,\n// \u0022confidence\u0022: 0.74794,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022air\u0022,\n// \u0022start\u0022: 3978,\n// \u0022end\u0022: 4174,\n// \u0022confidence\u0022: 1.0,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022quality\u0022,\n// \u0022start\u0022: 4212,\n// \u0022end\u0022: 4558,\n// \u0022confidence\u0022: 0.88077,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022alerts\u0022,\n// \u0022start\u0022: 4644,\n// \u0022end\u0022: 5114,\n// \u0022confidence\u0022: 0.94814,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022throughout\u0022,\n// \u0022start\u0022: 5162,\n// \u0022end\u0022: 5466,\n// \u0022confidence\u0022: 0.99726,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022the\u0022,\n// \u0022start\u0022: 5498,\n// \u0022end\u0022: 5694,\n// \u0022confidence\u0022: 0.79,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// },\n// {\n// \u0022text\u0022: \u0022US.\u0022,\n// \u0022start\u0022: 5732,\n// \u0022end\u0022: 6382,\n// \u0022confidence\u0022: 0.89,\n// \u0022speaker\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022\n// }\n// ],\n// \u0022utterances\u0022: [\n// {\n// \u0022confidence\u0022: 0.9359033333333334,\n// \u0022end\u0022: 26950,\n// \u0022speaker\u0022: \u0022A\u0022,\n// \u0022start\u0022: 250,\n// \u0022text\u0022: \u0022Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor.\u0022,\n// \u0022words\u0022: [\n// {\n// \u0022text\u0022: \u0022Smoke\u0022,\n// \u0022start\u0022: 250,\n// \u0022end\u0022: 650,\n// \u0022confidence\u0022: 0.97503,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022from\u0022,\n// \u0022start\u0022: 730,\n// \u0022end\u0022: 1022,\n// \u0022confidence\u0022: 0.99999,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022hundreds\u0022,\n// \u0022start\u0022: 1076,\n// \u0022end\u0022: 1418,\n// \u0022confidence\u0022: 0.99843,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022of\u0022,\n// \u0022start\u0022: 1434,\n// \u0022end\u0022: 1614,\n// \u0022confidence\u0022: 0.85,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022wildfires\u0022,\n// \u0022start\u0022: 1652,\n// \u0022end\u0022: 2346,\n// \u0022confidence\u0022: 0.89657,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022in\u0022,\n// \u0022start\u0022: 2378,\n// \u0022end\u0022: 2526,\n// \u0022confidence\u0022: 0.99994,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022Canada\u0022,\n// \u0022start\u0022: 2548,\n// \u0022end\u0022: 3130,\n// \u0022confidence\u0022: 0.93864,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022is\u0022,\n// \u0022start\u0022: 3210,\n// \u0022end\u0022: 3454,\n// \u0022confidence\u0022: 0.999,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022triggering\u0022,\n// \u0022start\u0022: 3492,\n// \u0022end\u0022: 3946,\n// \u0022confidence\u0022: 0.75366,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022air\u0022,\n// \u0022start\u0022: 3978,\n// \u0022end\u0022: 4174,\n// \u0022confidence\u0022: 1.0,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022quality\u0022,\n// \u0022start\u0022: 4212,\n// \u0022end\u0022: 4558,\n// \u0022confidence\u0022: 0.87745,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022alerts\u0022,\n// \u0022start\u0022: 4644,\n// \u0022end\u0022: 5114,\n// \u0022confidence\u0022: 0.94739,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022throughout\u0022,\n// \u0022start\u0022: 5162,\n// \u0022end\u0022: 5466,\n// \u0022confidence\u0022: 0.99726,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022the\u0022,\n// \u0022start\u0022: 5498,\n// \u0022end\u0022: 5694,\n// \u0022confidence\u0022: 0.79,\n// \u0022speaker\u0022: \u0022A\u0022\n// },\n// {\n// \u0022text\u0022: \u0022US.\u0022,\n// \u0022start\u0022: 5732,\n// \u0022end\u0022: 6382,\n// \u0022confidence\u0022: 0.88,\n// \u0022speaker\u0022: \u0022A\u0022\n// }\n// ]\n// }\n// ],\n// \u0022confidence\u0022: 0.9404651451800253,\n// \u0022audio_duration\u0022: 281,\n// \u0022punctuate\u0022: true,\n// \u0022format_text\u0022: true,\n// \u0022multichannel\u0022: false,\n// \u0022webhook_url\u0022: \u0022https://your-webhook-url.tld/path\u0022,\n// \u0022webhook_status_code\u0022: 200,\n// \u0022webhook_auth\u0022: true,\n// \u0022webhook_auth_header_name\u0022: \u0022webhook-secret\u0022,\n// \u0022auto_highlights_result\u0022: {\n// \u0022status\u0022: \u0022success\u0022,\n// \u0022results\u0022: [\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.08,\n// \u0022text\u0022: \u0022air quality alerts\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 3978,\n// \u0022end\u0022: 5114\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.08,\n// \u0022text\u0022: \u0022wide ranging air quality consequences\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 235388,\n// \u0022end\u0022: 238694\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.07,\n// \u0022text\u0022: \u0022more wildfires\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 230972,\n// \u0022end\u0022: 232354\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.07,\n// \u0022text\u0022: \u0022air pollution\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 156004,\n// \u0022end\u0022: 156910\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 3,\n// \u0022rank\u0022: 0.07,\n// \u0022text\u0022: \u0022weather systems\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 47344,\n// \u0022end\u0022: 47958\n// },\n// {\n// \u0022start\u0022: 205268,\n// \u0022end\u0022: 205818\n// },\n// {\n// \u0022start\u0022: 211588,\n// \u0022end\u0022: 213434\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 2,\n// \u0022rank\u0022: 0.06,\n// \u0022text\u0022: \u0022high levels\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 121128,\n// \u0022end\u0022: 121646\n// },\n// {\n// \u0022start\u0022: 155412,\n// \u0022end\u0022: 155866\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.06,\n// \u0022text\u0022: \u0022health conditions\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 152138,\n// \u0022end\u0022: 152666\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 2,\n// \u0022rank\u0022: 0.06,\n// \u0022text\u0022: \u0022Peter de Carlo\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 18948,\n// \u0022end\u0022: 19930\n// },\n// {\n// \u0022start\u0022: 268298,\n// \u0022end\u0022: 269194\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.06,\n// \u0022text\u0022: \u0022New York City\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 125768,\n// \u0022end\u0022: 126274\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022respiratory conditions\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 152964,\n// \u0022end\u0022: 153786\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 3,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022New York\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 125768,\n// \u0022end\u0022: 126034\n// },\n// {\n// \u0022start\u0022: 171448,\n// \u0022end\u0022: 171938\n// },\n// {\n// \u0022start\u0022: 176008,\n// \u0022end\u0022: 176322\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 3,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022climate change\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 229548,\n// \u0022end\u0022: 230230\n// },\n// {\n// \u0022start\u0022: 244576,\n// \u0022end\u0022: 245162\n// },\n// {\n// \u0022start\u0022: 263348,\n// \u0022end\u0022: 263950\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022Johns Hopkins University Varsity\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 23972,\n// \u0022end\u0022: 25490\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022heart conditions\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 153988,\n// \u0022end\u0022: 154506\n// }\n// ]\n// },\n// {\n// \u0022count\u0022: 1,\n// \u0022rank\u0022: 0.05,\n// \u0022text\u0022: \u0022air quality warnings\u0022,\n// \u0022timestamps\u0022: [\n// {\n// \u0022start\u0022: 12308,\n// \u0022end\u0022: 13434\n// }\n// ]\n// }\n// ]\n// },\n// \u0022auto_highlights\u0022: true,\n// \u0022audio_start_from\u0022: 10,\n// \u0022audio_end_at\u0022: 280,\n// \u0022filter_profanity\u0022: true,\n// \u0022redact_pii\u0022: true,\n// \u0022redact_pii_audio\u0022: true,\n// \u0022redact_pii_audio_quality\u0022: \u0022mp3\u0022,\n// \u0022redact_pii_policies\u0022: [\n// \u0022us_social_security_number\u0022,\n// \u0022credit_card_number\u0022\n// ],\n// \u0022redact_pii_sub\u0022: \u0022hash\u0022,\n// \u0022speaker_labels\u0022: true,\n// \u0022content_safety\u0022: true,\n// \u0022iab_categories\u0022: true,\n// \u0022content_safety_labels\u0022: {\n// \u0022status\u0022: \u0022success\u0022,\n// \u0022results\u0022: [\n// {\n// \u0022text\u0022: \u0022Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.\u0022,\n// \u0022labels\u0022: [\n// {\n// \u0022label\u0022: \u0022disasters\u0022,\n// \u0022confidence\u0022: 0.8142836093902588,\n// \u0022severity\u0022: 0.4093044400215149\n// }\n// ],\n// \u0022sentences_idx_start\u0022: 0,\n// \u0022sentences_idx_end\u0022: 5,\n// \u0022timestamp\u0022: {\n// \u0022start\u0022: 250,\n// \u0022end\u0022: 28840\n// }\n// }\n// ],\n// \u0022summary\u0022: {\n// \u0022disasters\u0022: 0.9940800441842205,\n// \u0022health_issues\u0022: 0.9216489289040967\n// },\n// \u0022severity_score_summary\u0022: {\n// \u0022disasters\u0022: {\n// \u0022low\u0022: 0.5733263024656846,\n// \u0022medium\u0022: 0.42667369753431533,\n// \u0022high\u0022: 0.0\n// },\n// \u0022health_issues\u0022: {\n// \u0022low\u0022: 0.22863814977924785,\n// \u0022medium\u0022: 0.45014154926938227,\n// \u0022high\u0022: 0.32122030095136983\n// }\n// }\n// },\n// \u0022iab_categories_result\u0022: {\n// \u0022status\u0022: \u0022success\u0022,\n// \u0022results\u0022: [\n// {\n// \u0022text\u0022: \u0022Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what\\u0027s happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.\u0022,\n// \u0022labels\u0022: [\n// {\n// \u0022relevance\u0022: 0.988274097442627,\n// \u0022label\u0022: \u0022Home\\u0026Garden\\u003EIndoorEnvironmentalQuality\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.5821335911750793,\n// \u0022label\u0022: \u0022NewsAndPolitics\\u003EWeather\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0042327106930315495,\n// \u0022label\u0022: \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003ELungAndRespiratoryHealth\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0033971222583204508,\n// \u0022label\u0022: \u0022NewsAndPolitics\\u003EDisasters\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.002469958271831274,\n// \u0022label\u0022: \u0022BusinessAndFinance\\u003EBusiness\\u003EGreenSolutions\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0014376690378412604,\n// \u0022label\u0022: \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003ECancer\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0014294233405962586,\n// \u0022label\u0022: \u0022Science\\u003EEnvironment\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.001234519761055708,\n// \u0022label\u0022: \u0022Travel\\u003ETravelLocations\\u003EPolarTravel\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0010231725173071027,\n// \u0022label\u0022: \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EColdAndFlu\u0022\n// },\n// {\n// \u0022relevance\u0022: 0.0007445293595083058,\n// \u0022label\u0022: \u0022BusinessAndFinance\\u003EIndustries\\u003EPowerAndEnergyIndustry\u0022\n// }\n// ],\n// \u0022timestamp\u0022: {\n// \u0022start\u0022: 250,\n// \u0022end\u0022: 28840\n// }\n// }\n// ],\n// \u0022summary\u0022: {\n// \u0022NewsAndPolitics\\u003EWeather\u0022: 1.0,\n// \u0022Home\\u0026Garden\\u003EIndoorEnvironmentalQuality\u0022: 0.9043831825256348,\n// \u0022Science\\u003EEnvironment\u0022: 0.16117265820503235,\n// \u0022BusinessAndFinance\\u003EIndustries\\u003EEnvironmentalServicesIndustry\u0022: 0.14393523335456848,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003ELungAndRespiratoryHealth\u0022: 0.11401086300611496,\n// \u0022BusinessAndFinance\\u003EBusiness\\u003EGreenSolutions\u0022: 0.06348437070846558,\n// \u0022NewsAndPolitics\\u003EDisasters\u0022: 0.05041387677192688,\n// \u0022Travel\\u003ETravelLocations\\u003EPolarTravel\u0022: 0.01308488193899393,\n// \u0022HealthyLiving\u0022: 0.008222488686442375,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EColdAndFlu\u0022: 0.0022315620444715023,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EHeartAndCardiovascularDiseases\u0022: 0.00213034451007843,\n// \u0022HealthyLiving\\u003EWellness\\u003ESmokingCessation\u0022: 0.001540527562610805,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EInjuries\u0022: 0.0013950627762824297,\n// \u0022BusinessAndFinance\\u003EIndustries\\u003EPowerAndEnergyIndustry\u0022: 0.0012570273829624057,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003ECancer\u0022: 0.001097781932912767,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EAllergies\u0022: 0.0010148967849090695,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EMentalHealth\u0022: 0.000717321818228811,\n// \u0022Style\\u0026Fashion\\u003EPersonalCare\\u003EDeodorantAndAntiperspirant\u0022: 0.0006022014422342181,\n// \u0022Technology\\u0026Computing\\u003EComputing\\u003EComputerNetworking\u0022: 0.0005461975233629346,\n// \u0022MedicalHealth\\u003EDiseasesAndConditions\\u003EInjuries\\u003EFirstAid\u0022: 0.0004885646631009877\n// }\n// },\n// \u0022custom_spelling\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022throttled\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022auto_chapters\u0022: false,\n// \u0022summarization\u0022: false,\n// \u0022summary_type\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022summary_model\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022custom_topics\u0022: true,\n// \u0022topics\u0022: [],\n// \u0022speech_threshold\u0022: 0.5,\n// \u0022remove_audio_tags\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022domain\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022disfluencies\u0022: false,\n// \u0022sentiment_analysis\u0022: true,\n// \u0022sentiment_analysis_results\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022entity_detection\u0022: true,\n// \u0022entities\u0022: [\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022Canada\u0022,\n// \u0022start\u0022: 2548,\n// \u0022end\u0022: 3130\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022the US\u0022,\n// \u0022start\u0022: 5498,\n// \u0022end\u0022: 6382\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022Maine\u0022,\n// \u0022start\u0022: 7492,\n// \u0022end\u0022: 7914\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022Maryland\u0022,\n// \u0022start\u0022: 8212,\n// \u0022end\u0022: 8634\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022Minnesota\u0022,\n// \u0022start\u0022: 8932,\n// \u0022end\u0022: 9578\n// },\n// {\n// \u0022entity_type\u0022: \u0022person_name\u0022,\n// \u0022text\u0022: \u0022Peter de Carlo\u0022,\n// \u0022start\u0022: 18948,\n// \u0022end\u0022: 19930\n// },\n// {\n// \u0022entity_type\u0022: \u0022occupation\u0022,\n// \u0022text\u0022: \u0022associate professor\u0022,\n// \u0022start\u0022: 20292,\n// \u0022end\u0022: 21194\n// },\n// {\n// \u0022entity_type\u0022: \u0022organization\u0022,\n// \u0022text\u0022: \u0022Department of Environmental Health and Engineering\u0022,\n// \u0022start\u0022: 21508,\n// \u0022end\u0022: 23706\n// },\n// {\n// \u0022entity_type\u0022: \u0022organization\u0022,\n// \u0022text\u0022: \u0022Johns Hopkins University Varsity\u0022,\n// \u0022start\u0022: 23972,\n// \u0022end\u0022: 25490\n// },\n// {\n// \u0022entity_type\u0022: \u0022occupation\u0022,\n// \u0022text\u0022: \u0022professor\u0022,\n// \u0022start\u0022: 26076,\n// \u0022end\u0022: 26950\n// },\n// {\n// \u0022entity_type\u0022: \u0022location\u0022,\n// \u0022text\u0022: \u0022the US\u0022,\n// \u0022start\u0022: 45184,\n// \u0022end\u0022: 45898\n// },\n// {\n// \u0022entity_type\u0022: \u0022nationality\u0022,\n// \u0022text\u0022: \u0022Canadian\u0022,\n// \u0022start\u0022: 49728,\n// \u0022end\u0022: 50086\n// }\n// ],\n// \u0022chapters\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022summary\u0022: \u0022openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464\u0022,\n// \u0022speakers_expected\u0022: 2\n// }", "Format": "sdk", "OperationId": "createTranscript", "Setup": "This example assumes \u0060using AssemblyAI;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index 1224184..c05273e 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -1,4 +1,5 @@ openapi: 3.1.0 + info: title: AssemblyAI API description: AssemblyAI API @@ -8,10 +9,12 @@ info: name: API Support email: support@assemblyai.com url: https://www.assemblyai.com/docs/ + servers: - url: https://api.assemblyai.com description: AssemblyAI API x-fern-server-name: Default + tags: - name: transcript description: Transcript related operations @@ -21,25 +24,21 @@ tags: description: Streaming Speech-to-Text externalDocs: url: https://www.assemblyai.com/docs/streaming/universal-streaming + security: - ApiKey: [] + paths: /v2/upload: post: tags: - transcript summary: Upload a media file - description: > + description: | Upload a media file to AssemblyAI's servers. - - To upload a media file to our EU server, replace - `api.assemblyai.com` with `api.eu.assemblyai.com`. - - Requests to transcribe uploaded files must use an API key from - the same project as the key that was used to upload the file. If you use - an API key from a different project you will get a `403` error and - "Cannot access uploaded file" message. + To upload a media file to our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + Requests to transcribe uploaded files must use an API key from the same project as the key that was used to upload the file. If you use an API key from a different project you will get a `403` error and "Cannot access uploaded file" message. operationId: uploadFile x-fern-sdk-group-name: files x-fern-sdk-method-name: upload @@ -50,53 +49,47 @@ paths: type: string format: binary responses: - '200': + "200": x-label: Media file uploaded description: Media file uploaded successfully content: application/json: schema: - $ref: '#/components/schemas/UploadedFile' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '403': - $ref: '#/components/responses/CannotAccessUploadedFile' - '404': - $ref: '#/components/responses/NotFound' - '422': + $ref: "#/components/schemas/UploadedFile" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "403": + $ref: "#/components/responses/CannotAccessUploadedFile" + "404": + $ref: "#/components/responses/NotFound" + "422": x-label: Upload failed - description: > - Upload failed (for example, when the request body is empty). The - response body is plain text, not JSON. + description: | + Upload failed (for example, when the request body is empty). The response body is plain text, not JSON. content: text/plain: schema: type: string - example: >- - Upload failed, please try again. If you continue to have issues - please reach out to support@assemblyai.com - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + example: "Upload failed, please try again. If you continue to have issues please reach out to support@assemblyai.com" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + /v2/transcript: post: tags: - transcript summary: Transcribe audio - description: > - To use our EU server for transcription, replace - `api.assemblyai.com` with `api.eu.assemblyai.com`. - - Building a load test or submitting a large batch? [See our guide - →](/pre-recorded-audio/guides/bulk-transcription-and-load-tests-at-scale) - + description: | + To use our EU server for transcription, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + Building a load test or submitting a large batch? [See our guide →](/pre-recorded-audio/guides/bulk-transcription-and-load-tests-at-scale) Create a transcript from a media file that is accessible via a URL. operationId: createTranscript x-fern-sdk-group-name: transcripts @@ -108,47 +101,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TranscriptParams' + $ref: "#/components/schemas/TranscriptParams" responses: - '200': + "200": x-label: Transcript created description: Transcript created and queued for processing content: application/json: schema: - $ref: '#/components/schemas/Transcript' + $ref: "#/components/schemas/Transcript" links: GetTranscriptById: - $ref: '#/components/links/GetTranscriptById' + $ref: "#/components/links/GetTranscriptById" GetTranscriptSentencesById: - $ref: '#/components/links/GetTranscriptSentencesById' + $ref: "#/components/links/GetTranscriptSentencesById" GetTranscriptParagraphsById: - $ref: '#/components/links/GetTranscriptParagraphsById' + $ref: "#/components/links/GetTranscriptParagraphsById" GetTranscriptSubtitlesById: - $ref: '#/components/links/GetTranscriptSubtitlesById' + $ref: "#/components/links/GetTranscriptSubtitlesById" GetTranscriptRedactedAudioById: - $ref: '#/components/links/GetTranscriptRedactedAudioById' + $ref: "#/components/links/GetTranscriptRedactedAudioById" WordSearchByTranscriptId: - $ref: '#/components/links/WordSearchByTranscriptId' + $ref: "#/components/links/WordSearchByTranscriptId" DeleteTranscriptById: - $ref: '#/components/links/DeleteTranscriptById' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + $ref: "#/components/links/DeleteTranscriptById" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": + $ref: "#/components/responses/NotFound" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" callbacks: transcriptReadyWebhook: - '{$request.body#/webhook_url}': + "{$request.body#/webhook_url}": post: summary: Transcript ready webhook requestBody: @@ -156,16 +149,16 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TranscriptReadyNotification' + $ref: "#/components/schemas/TranscriptReadyNotification" responses: - 2XX: + "2XX": description: Successfully received the notification - 4XX: + "4XX": description: Invalid request - 5XX: + "5XX": description: Unexpected error redactedAudioWebhook: - '{$request.body#/webhook_url}': + "{$request.body#/webhook_url}": post: summary: Redacted audio ready webhook requestBody: @@ -173,13 +166,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RedactedAudioNotification' + $ref: "#/components/schemas/RedactedAudioNotification" responses: - 2XX: + "2XX": description: Successfully received the notification - 4XX: + "4XX": description: Invalid request - 5XX: + "5XX": description: Unexpected error get: tags: @@ -189,37 +182,20 @@ paths: x-fern-sdk-method-name: list x-fern-request-name: ListTranscriptParams operationId: listTranscripts - description: > - To retrieve your transcriptions on our EU server, replace - `api.assemblyai.com` with `api.eu.assemblyai.com`. - + description: | + To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. Retrieve a list of transcripts you created. + Transcripts are sorted from newest to oldest and can be retrieved for the last 90 days of usage. The previous URL always points to a page with older transcripts. - Transcripts are sorted from newest to oldest and can be retrieved for - the last 90 days of usage. The previous URL always points to a page with - older transcripts. - - - If you need to retrieve transcripts from more than 90 days ago please - reach out to our Support team at support@assemblyai.com. - + If you need to retrieve transcripts from more than 90 days ago please reach out to our Support team at support@assemblyai.com. **Pagination** - - This endpoint returns paginated results. The response includes a - `page_details` object with the following properties: - + This endpoint returns paginated results. The response includes a `page_details` object with the following properties: - `page_details.limit` - Maximum number of transcripts per page. - - - `page_details.result_count` - Total number of transcripts returned on - the current page. - + - `page_details.result_count` - Total number of transcripts returned on the current page. - `page_details.current_url` - URL to the current page. - - - `page_details.prev_url` - URL to the previous page of older - transcripts. - + - `page_details.prev_url` - URL to the previous page of older transcripts. - `page_details.next_url` - URL to the next page of newer transcripts. parameters: - name: limit @@ -236,7 +212,8 @@ paths: in: query description: Filter by transcript status schema: - $ref: '#/components/schemas/TranscriptStatus' + $ref: "#/components/schemas/TranscriptStatus" + - name: created_on x-label: Created on in: query @@ -244,6 +221,7 @@ paths: schema: type: string format: date + - name: before_id x-label: Before ID in: query @@ -251,6 +229,7 @@ paths: schema: type: string format: uuid + - name: after_id x-label: After ID in: query @@ -258,6 +237,7 @@ paths: schema: type: string format: uuid + - name: throttled_only x-label: Throttled only in: query @@ -267,28 +247,28 @@ paths: default: false deprecated: true responses: - '200': - description: > - A list of transcripts. Transcripts are sorted from newest to oldest. - The previous URL always points to a page with older transcripts. + "200": + description: | + A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. content: application/json: schema: - $ref: '#/components/schemas/TranscriptList' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + $ref: "#/components/schemas/TranscriptList" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": + $ref: "#/components/responses/NotFound" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + /v2/transcript/{transcript_id}: get: tags: @@ -298,12 +278,9 @@ paths: x-fern-sdk-group-name: transcripts x-fern-sdk-method-name: get x-fern-request-name: GetTranscriptParams - description: > - To retrieve your transcriptions on our EU server, replace - `api.assemblyai.com` with `api.eu.assemblyai.com`. - - Get the transcript resource. The transcript is ready when the "status" - is "completed". + description: | + To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + Get the transcript resource. The transcript is ready when the "status" is "completed". parameters: - name: transcript_id x-label: Transcript ID @@ -313,54 +290,50 @@ paths: schema: type: string responses: - '200': + "200": description: The transcript resource content: application/json: schema: - $ref: '#/components/schemas/Transcript' + $ref: "#/components/schemas/Transcript" links: GetTranscriptById: - $ref: '#/components/links/GetTranscriptById' + $ref: "#/components/links/GetTranscriptById" GetTranscriptSentencesById: - $ref: '#/components/links/GetTranscriptSentencesById' + $ref: "#/components/links/GetTranscriptSentencesById" GetTranscriptParagraphsById: - $ref: '#/components/links/GetTranscriptParagraphsById' + $ref: "#/components/links/GetTranscriptParagraphsById" GetTranscriptSubtitlesById: - $ref: '#/components/links/GetTranscriptSubtitlesById' + $ref: "#/components/links/GetTranscriptSubtitlesById" GetTranscriptRedactedAudioById: - $ref: '#/components/links/GetTranscriptRedactedAudioById' + $ref: "#/components/links/GetTranscriptRedactedAudioById" WordSearchByTranscriptId: - $ref: '#/components/links/WordSearchByTranscriptId' + $ref: "#/components/links/WordSearchByTranscriptId" DeleteTranscriptById: - $ref: '#/components/links/DeleteTranscriptById' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + $ref: "#/components/links/DeleteTranscriptById" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": + $ref: "#/components/responses/NotFound" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + delete: tags: - transcript summary: Delete transcript - description: > - To delete your transcriptions on our EU server, replace - `api.assemblyai.com` with `api.eu.assemblyai.com`. - + description: | + To delete your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. Remove the data from the transcript and mark it as deleted. - - Files uploaded via the `/upload` endpoint are immediately - deleted alongside the transcript when you make a DELETE request, - ensuring your data is removed from our systems right away. + Files uploaded via the `/upload` endpoint are immediately deleted alongside the transcript when you make a DELETE request, ensuring your data is removed from our systems right away. operationId: deleteTranscript x-fern-sdk-group-name: transcripts x-fern-sdk-method-name: delete @@ -373,37 +346,35 @@ paths: schema: type: string responses: - '200': + "200": description: The deleted transcript response content: application/json: schema: - $ref: '#/components/schemas/Transcript' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + $ref: "#/components/schemas/Transcript" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": + $ref: "#/components/responses/NotFound" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + /v2/transcript/{transcript_id}/{subtitle_format}: get: tags: - transcript summary: Get subtitles for transcript - description: > - To retrieve your transcriptions on our EU server, replace - `api.assemblyai.com` with `api.eu.assemblyai.com`. - - Export your transcript in SRT or VTT format to use with a video player - for subtitles and closed captions. + description: | + To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + Export your transcript in SRT or VTT format to use with a video player for subtitles and closed captions. operationId: getSubtitles x-fern-sdk-group-name: transcripts x-fern-sdk-method-name: getSubtitles @@ -422,89 +393,72 @@ paths: description: The format of the captions required: true schema: - $ref: '#/components/schemas/SubtitleFormat' + $ref: "#/components/schemas/SubtitleFormat" - name: chars_per_caption x-label: Number of characters per caption in: query description: The maximum number of characters per caption schema: type: integer + responses: - '200': + "200": description: The exported captions as text content: text/plain: schema: type: string - example: > + example: | WEBVTT - 00:12.340 --> 00:16.220 - Last year I showed these two slides said that demonstrate - 00:16.200 --> 00:20.040 - - that the Arctic ice cap which for most of the last 3,000,000 - years has been the - + that the Arctic ice cap which for most of the last 3,000,000 years has been the 00:20.020 --> 00:25.040 - - size of the lower 48 States has shrunk by 40% but this - understates + size of the lower 48 States has shrunk by 40% but this understates examples: srt: - $ref: '#/components/examples/SrtSubtitlesResponse' + $ref: "#/components/examples/SrtSubtitlesResponse" vtt: - $ref: '#/components/examples/VttSubtitlesResponse' + $ref: "#/components/examples/VttSubtitlesResponse" text/html: schema: type: string - example: > + example: | WEBVTT - 00:12.340 --> 00:16.220 - Last year I showed these two slides said that demonstrate - 00:16.200 --> 00:20.040 - - that the Arctic ice cap which for most of the last 3,000,000 - years has been the - + that the Arctic ice cap which for most of the last 3,000,000 years has been the 00:20.020 --> 00:25.040 - - size of the lower 48 States has shrunk by 40% but this - understates + size of the lower 48 States has shrunk by 40% but this understates examples: srt: - $ref: '#/components/examples/SrtSubtitlesResponse' + $ref: "#/components/examples/SrtSubtitlesResponse" vtt: - $ref: '#/components/examples/VttSubtitlesResponse' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': + $ref: "#/components/examples/VttSubtitlesResponse" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": x-label: Not found - description: > - Returned when `subtitle_format` is not `srt` or `vtt`. The response - body is a plain HTML 404 page — the literal string `404: Not Found` - — not JSON. Unknown `transcript_id` lookups, by contrast, return a - `400` with a JSON `Error` object. + description: | + Returned when `subtitle_format` is not `srt` or `vtt`. The response body is a plain HTML 404 page — the literal string `404: Not Found` — not JSON. Unknown `transcript_id` lookups, by contrast, return a `400` with a JSON `Error` object. content: text/html: schema: type: string - example: '404: Not Found' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + example: "404: Not Found" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + /v2/transcript/{transcript_id}/sentences: get: tags: @@ -514,13 +468,9 @@ paths: x-fern-sdk-group-name: transcripts x-fern-sdk-method-name: getSentences x-fern-request-name: GetSentencesParams - description: > - To retrieve your transcriptions on our EU server, replace - `api.assemblyai.com` with `api.eu.assemblyai.com`. - - Get the transcript split by sentences. The API will attempt to - semantically segment the transcript into sentences to create more - reader-friendly transcripts. + description: | + To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + Get the transcript split by sentences. The API will attempt to semantically segment the transcript into sentences to create more reader-friendly transcripts. parameters: - name: transcript_id x-label: Transcript ID @@ -530,26 +480,27 @@ paths: schema: type: string responses: - '200': + "200": description: Exported sentences content: application/json: schema: - $ref: '#/components/schemas/SentencesResponse' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + $ref: "#/components/schemas/SentencesResponse" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": + $ref: "#/components/responses/NotFound" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + /v2/transcript/{transcript_id}/paragraphs: get: tags: @@ -559,13 +510,9 @@ paths: x-fern-sdk-group-name: transcripts x-fern-sdk-method-name: getParagraphs x-fern-request-name: GetParagraphsParams - description: > - To retrieve your transcriptions on our EU server, replace - `api.assemblyai.com` with `api.eu.assemblyai.com`. - - Get the transcript split by paragraphs. The API will attempt to - semantically segment your transcript into paragraphs to create more - reader-friendly transcripts. + description: | + To retrieve your transcriptions on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + Get the transcript split by paragraphs. The API will attempt to semantically segment your transcript into paragraphs to create more reader-friendly transcripts. parameters: - name: transcript_id x-label: Transcript ID @@ -575,38 +522,35 @@ paths: schema: type: string responses: - '200': + "200": description: Exported paragraphs content: application/json: schema: - $ref: '#/components/schemas/ParagraphsResponse' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + $ref: "#/components/schemas/ParagraphsResponse" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": + $ref: "#/components/responses/NotFound" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + /v2/transcript/{transcript_id}/word-search: get: tags: - transcript summary: Search words in transcript - description: > - To search through a transcription created on our EU server, - replace `api.assemblyai.com` with `api.eu.assemblyai.com`. - - Search through the transcript for keywords. You can search for - individual words, numbers, or phrases containing up to five words or - numbers. + description: | + To search through a transcription created on our EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com`. + Search through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers. operationId: wordSearch x-fern-sdk-group-name: transcripts x-fern-sdk-method-name: wordSearch @@ -631,42 +575,38 @@ paths: items: x-label: Word type: string + responses: - '200': + "200": description: Word search response content: application/json: schema: - $ref: '#/components/schemas/WordSearchResponse' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + $ref: "#/components/schemas/WordSearchResponse" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": + $ref: "#/components/responses/NotFound" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + /v2/transcript/{transcript_id}/redacted-audio: get: tags: - transcript summary: Get redacted audio - description: > - To retrieve the redacted audio on the EU server, replace - `api.assemblyai.com` with `api.eu.assemblyai.com` in the `GET` request - above. - - Redacted audio files are only available for 24 hours. Make sure to - download the file within this time frame. - - Retrieve the redacted audio object containing the status and URL to the - redacted audio. + description: | + To retrieve the redacted audio on the EU server, replace `api.assemblyai.com` with `api.eu.assemblyai.com` in the `GET` request above. + Redacted audio files are only available for 24 hours. Make sure to download the file within this time frame. + Retrieve the redacted audio object containing the status and URL to the redacted audio. operationId: getRedactedAudio x-fern-sdk-group-name: transcripts x-fern-sdk-method-name: getRedactedAudio @@ -679,80 +619,66 @@ paths: required: true schema: type: string + responses: - '200': - description: >- - The redacted audio object containing the status and URL to the - redacted audio + "200": + description: The redacted audio object containing the status and URL to the redacted audio content: application/json: schema: - $ref: '#/components/schemas/RedactedAudioResponse' - '400': - $ref: '#/components/responses/BadRequest' - '401': - $ref: '#/components/responses/Unauthorized' - '404': - $ref: '#/components/responses/NotFound' - '429': - $ref: '#/components/responses/TooManyRequests' - '500': - $ref: '#/components/responses/InternalServerError' - '503': - $ref: '#/components/responses/ServiceUnavailable' - '504': - $ref: '#/components/responses/GatewayTimeout' + $ref: "#/components/schemas/RedactedAudioResponse" + "400": + $ref: "#/components/responses/BadRequest" + "401": + $ref: "#/components/responses/Unauthorized" + "404": + $ref: "#/components/responses/NotFound" + "429": + $ref: "#/components/responses/TooManyRequests" + "500": + $ref: "#/components/responses/InternalServerError" + "503": + $ref: "#/components/responses/ServiceUnavailable" + "504": + $ref: "#/components/responses/GatewayTimeout" + components: links: GetTranscriptById: operationId: getTranscript parameters: - transcript_id: $response.body#/id - description: >- - The transcript ID can be used as the `transcript_id` parameter in `GET - /v2/transcript/{transcript_id}`. + transcript_id: "$response.body#/id" + description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}`. GetTranscriptSentencesById: operationId: getSentences parameters: - transcript_id: $response.body#/id - description: >- - The transcript ID can be used as the `transcript_id` parameter in `GET - /v2/transcript/{transcript_id}/sentences`. + transcript_id: "$response.body#/id" + description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/sentences`. GetTranscriptParagraphsById: operationId: getParagraphs parameters: - transcript_id: $response.body#/id - description: >- - The transcript ID can be used as the `transcript_id` parameter in `GET - /v2/transcript/{transcript_id}/paragraphs`. + transcript_id: "$response.body#/id" + description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/paragraphs`. GetTranscriptSubtitlesById: operationId: getSubtitles parameters: - transcript_id: $response.body#/id - description: >- - The transcript ID can be used as the `transcript_id` parameter in `GET - /v2/transcript/{transcript_id}/{subtitle_format}`. + transcript_id: "$response.body#/id" + description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/{subtitle_format}`. GetTranscriptRedactedAudioById: operationId: getRedactedAudio parameters: - transcript_id: $response.body#/id - description: >- - The transcript ID can be used as the `transcript_id` parameter in `GET - /v2/transcript/{transcript_id}/redacted-audio`. + transcript_id: "$response.body#/id" + description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/redacted-audio`. WordSearchByTranscriptId: operationId: wordSearch parameters: - transcript_id: $response.body#/id - description: >- - The transcript ID can be used as the `transcript_id` parameter in `GET - /v2/transcript/{transcript_id}/word-search`. + transcript_id: "$response.body#/id" + description: The transcript ID can be used as the `transcript_id` parameter in `GET /v2/transcript/{transcript_id}/word-search`. DeleteTranscriptById: operationId: deleteTranscript parameters: - transcript_id: $response.body#/id - description: >- - The transcript ID can be used as the `transcript_id` parameter in - `DELETE /v2/transcript/{transcript_id}`. + transcript_id: "$response.body#/id" + description: The transcript ID can be used as the `transcript_id` parameter in `DELETE /v2/transcript/{transcript_id}`. schemas: TranscriptReadyNotification: description: The notification when the transcript status is completed or error. @@ -769,13 +695,16 @@ components: status: x-label: Transcript status description: The status of the transcript. Either completed or error. - $ref: '#/components/schemas/TranscriptReadyStatus' + $ref: "#/components/schemas/TranscriptReadyStatus" required: - transcript_id - status example: - transcript_id: 9ea68fd3-f953-42c1-9742-976c447fb463 - status: completed + { + transcript_id: "9ea68fd3-f953-42c1-9742-976c447fb463", + status: "completed", + } + RedactedAudioNotification: description: The notification when the redacted audio is ready. x-label: Redacted audio notification @@ -783,7 +712,8 @@ components: type: object additionalProperties: false allOf: - - $ref: '#/components/schemas/RedactedAudioResponse' + - $ref: "#/components/schemas/RedactedAudioResponse" + RedactedAudioResponse: type: object additionalProperties: false @@ -796,16 +726,18 @@ components: status: x-label: Status description: The status of the redacted audio - $ref: '#/components/schemas/RedactedAudioStatus' + $ref: "#/components/schemas/RedactedAudioStatus" redacted_audio_url: x-label: Redacted audio URL description: The URL of the redacted audio file type: string format: url example: - redacted_audio_url: >- - https://s3.us-west-2.amazonaws.com/api.assembly.ai.usw2/redacted-audio/785efd9e-0e20-45e1-967b-3db17770ed9f.wav?AWSAccessKeyId=aws-access-key0id&Signature=signature&x-amz-security-token=security-token&Expires=1698966551 - status: redacted_audio_ready + { + redacted_audio_url: "https://s3.us-west-2.amazonaws.com/api.assembly.ai.usw2/redacted-audio/785efd9e-0e20-45e1-967b-3db17770ed9f.wav?AWSAccessKeyId=aws-access-key0id&Signature=signature&x-amz-security-token=security-token&Expires=1698966551", + status: "redacted_audio_ready", + } + RedactedAudioStatus: x-label: Redacted audio status description: The status of the redacted audio @@ -816,6 +748,7 @@ components: x-aai-enum: redacted_audio_ready: label: Redacted audio is ready + SubtitleFormat: x-label: Subtitle format description: Format of the subtitles @@ -829,6 +762,7 @@ components: label: SRT vtt: label: VTT + WordSearchResponse: x-label: Word search response type: object @@ -842,9 +776,7 @@ components: format: uuid total_count: x-label: Total count of matches - description: >- - The total count of all matched instances. For e.g., word 1 matched 2 - times, and word 2 matched 3 times, `total_count` will equal 5. + description: The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, `total_count` will equal 5. type: integer matches: x-label: Matches @@ -852,53 +784,46 @@ components: type: array items: x-label: Match - $ref: '#/components/schemas/WordSearchMatch' + $ref: "#/components/schemas/WordSearchMatch" required: - id - total_count - matches example: - id: d5a3d302-066e-43fb-b63b-8f57baf185db - total_count: 10 - matches: - - text: smoke - count: 6 - timestamps: - - - 250 - - 650 - - - 49168 - - 49398 - - - 55284 - - 55594 - - - 168888 - - 169118 - - - 215108 - - 215386 - - - 225944 - - 226170 - indexes: - - 0 - - 136 - - 156 - - 486 - - 652 - - 698 - - text: wildfires - count: 4 - timestamps: - - - 1668 - - 2346 - - - 33852 - - 34546 - - - 50118 - - 51110 - - - 231356 - - 232354 - indexes: - - 4 - - 90 - - 140 - - 716 + { + id: "d5a3d302-066e-43fb-b63b-8f57baf185db", + total_count: 10, + matches: + [ + { + text: "smoke", + count: 6, + timestamps: + [ + [250, 650], + [49168, 49398], + [55284, 55594], + [168888, 169118], + [215108, 215386], + [225944, 226170], + ], + indexes: [0, 136, 156, 486, 652, 698], + }, + { + text: "wildfires", + count: 4, + timestamps: + [ + [1668, 2346], + [33852, 34546], + [50118, 51110], + [231356, 232354], + ], + indexes: [4, 90, 140, 716], + }, + ], + } + WordSearchMatch: type: object x-label: Word search match @@ -919,12 +844,10 @@ components: type: array items: x-label: Timestamp - $ref: '#/components/schemas/WordSearchTimestamp' + $ref: "#/components/schemas/WordSearchTimestamp" indexes: x-label: Indexes - description: >- - An array of all index locations for that word within the `words` - array of the completed transcript + description: An array of all index locations for that word within the `words` array of the completed transcript type: array items: x-label: Index @@ -935,42 +858,32 @@ components: - timestamps - indexes example: - text: smoke - count: 6 - timestamps: - - - 250 - - 650 - - - 49168 - - 49398 - - - 55284 - - 55594 - - - 168888 - - 169118 - - - 215108 - - 215386 - - - 225944 - - 226170 - indexes: - - 0 - - 136 - - 156 - - 486 - - 652 - - 698 + { + text: "smoke", + count: 6, + timestamps: + [ + [250, 650], + [49168, 49398], + [55284, 55594], + [168888, 169118], + [215108, 215386], + [225944, 226170], + ], + indexes: [0, 136, 156, 486, 652, 698], + } + WordSearchTimestamp: x-label: Word search timestamp - description: >- - An array of timestamps structured as [`start_time`, `end_time`] in - milliseconds + description: An array of timestamps structured as [`start_time`, `end_time`] in milliseconds x-fern-sdk-group-name: transcripts type: array items: x-label: Timestamp description: Timestamp in milliseconds type: integer - example: - - 250 - - 650 + example: [250, 650] + Timestamp: x-label: Timestamp description: Timestamp containing a start and end property in milliseconds @@ -989,9 +902,9 @@ components: required: - start - end - example: - start: 3978 - end: 5114 + example: { start: 3978, end: 5114 } + + # This type is used by the Transcriber TranscriptOptionalParams: x-label: Optional transcript parameters description: The parameters for creating a transcript @@ -1001,680 +914,491 @@ components: properties: audio_end_at: x-label: Audio end at - description: >- - The point in time, in milliseconds, to stop transcribing in your - media file. See [Set the start and end of the - transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) - for more details. + description: The point in time, in milliseconds, to stop transcribing in your media file. See [Set the start and end of the transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) for more details. type: integer + audio_start_from: x-label: Audio start from - description: >- - The point in time, in milliseconds, to begin transcribing in your - media file. See [Set the start and end of the - transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) - for more details. + description: The point in time, in milliseconds, to begin transcribing in your media file. See [Set the start and end of the transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) for more details. type: integer + auto_chapters: x-label: Auto chapters - description: > - Enable [Auto - Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters), - can be true or false. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible chapter summaries. See the [updated Auto - Chapters - page](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) - for details. - + description: | + Enable [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters), can be true or false. Requires `punctuate` to be `true`, and cannot be enabled together with `summarization`. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible chapter summaries. See the [updated Auto Chapters page](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) for details. Note: This parameter is only supported for the Universal-2 model. type: boolean default: false deprecated: true + auto_highlights: x-label: Key phrases - description: >- - Enable [Key - Phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases), - either true or false + description: Enable [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases), either true or false type: boolean default: false + content_safety: x-label: Content Moderation - description: >- - Enable [Content - Moderation](https://www.assemblyai.com/docs/content-moderation), can - be true or false + description: Enable [Content Moderation](https://www.assemblyai.com/docs/content-moderation), can be true or false type: boolean default: false + content_safety_confidence: x-label: Content Moderation confidence - description: >- - The confidence threshold for the [Content - Moderation](https://www.assemblyai.com/docs/content-moderation) - model. Values must be between 25 and 100. + description: The confidence threshold for the [Content Moderation](https://www.assemblyai.com/docs/content-moderation) model. Values must be between 25 and 100. Requires `content_safety` to be enabled; otherwise it's ignored. type: integer default: 50 minimum: 25 maximum: 100 + custom_spelling: x-label: Custom spellings - description: >- - Customize how words are spelled and formatted using to and from - values. See [Custom - Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) - for more details. + description: Customize how words are spelled and formatted using to and from values. Each `to` value must be a single word, and each `from` phrase can contain at most 5 words. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. type: array items: x-label: Custom spelling - $ref: '#/components/schemas/TranscriptCustomSpelling' + $ref: "#/components/schemas/TranscriptCustomSpelling" + disfluencies: x-label: Disfluencies - description: >- - Transcribe [Filler - Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), - like "umm", in your media file; can be true or false. Supported on - Universal-3.5 Pro and Universal-2. + description: Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2. type: boolean default: false + domain: x-label: Domain - description: > - Enable domain-specific transcription models to improve accuracy for - specialized terminology. Set to `"medical-v1"` to enable [Medical - Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) - for improved accuracy of medical terms such as medications, - procedures, conditions, and dosages. - + description: | + Enable domain-specific transcription models to improve accuracy for specialized terminology. Set to `"medical-v1"` to enable [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) for improved accuracy of medical terms such as medications, procedures, conditions, and dosages. - Supported languages: English (`en`), Spanish (`es`), German (`de`), - French (`fr`). If used with an unsupported language, the parameter - is ignored and a warning is returned. - oneOf: - - type: string - - type: 'null' + Supported languages: English (`en`), Spanish (`es`), German (`de`), French (`fr`). If `medical-v1` is used with an unsupported language, the parameter is ignored and a warning is returned. + type: + - string + - "null" + enum: + - medical-v1 + - null default: null + entity_detection: x-label: Entity Detection - description: >- - Enable [Entity - Detection](https://www.assemblyai.com/docs/speech-understanding/entity-detection), - can be true or false + description: Enable [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/entity-detection), can be true or false type: boolean default: false + filter_profanity: x-label: Filter profanity - description: >- - Filter profanity from the transcribed text, can be true or false. - See [Profanity - Filtering](https://www.assemblyai.com/docs/profanity-filtering) for - more details. + description: Filter profanity from the transcribed text, can be true or false. See [Profanity Filtering](https://www.assemblyai.com/docs/profanity-filtering) for more details. type: boolean default: false + format_text: x-label: Format text - description: >- - Enable [Text - Formatting](https://www.assemblyai.com/docs/pre-recorded-audio), can - be true or false + description: Enable [Text Formatting](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false type: boolean default: true + iab_categories: x-label: Topic Detection - description: >- - Enable [Topic - Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection), - can be true or false + description: Enable [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection), can be true or false type: boolean default: false + keyterms_prompt: x-label: Keyterms prompt - description: > - Improve accuracy with up to 200 (for Universal-2) or 1000 (for - Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words - per phrase). See [Keyterms - Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) - for more details. + description: | + Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) for more details. type: array items: x-label: Keyterm type: string + language_code: x-label: Language code - description: > - The language of your audio file. Possible values are found in - [Supported - Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - + description: | + The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages). The default value is 'en_us'. oneOf: - anyOf: - - $ref: '#/components/schemas/TranscriptLanguageCode' + - $ref: "#/components/schemas/TranscriptLanguageCode" - type: string - - type: 'null' + - type: "null" default: en_us x-ts-type: LiteralUnion | null x-go-type: TranscriptLanguageCode - language_codes: - description: > - The language codes of your audio file. Used for [Code - switching](/speech-to-text/pre-recorded-audio/code-switching) + language_codes: + description: | + The language codes of your audio file. Used for [Code switching](/speech-to-text/pre-recorded-audio/code-switching) One of the values specified must be `en`. - type: - - array - - 'null' + type: [array, "null"] items: x-label: Language code - $ref: '#/components/schemas/TranscriptLanguageCode' + $ref: "#/components/schemas/TranscriptLanguageCode" + language_confidence_threshold: x-label: Language confidence threshold - description: > + description: | The confidence threshold for the automatically detected language. - - An error will be returned if the language confidence is below this - threshold. - - Defaults to 0. See [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) - for more details. + An error will be returned if the language confidence is below this threshold. + Defaults to 0. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. type: number format: float minimum: 0 maximum: 1 default: 0 + language_detection: x-label: Language detection - description: >- - Enable [Automatic language - detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection), - either true or false. + description: Enable [Automatic language detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection), either true or false. type: boolean default: false + language_detection_options: x-label: Specify options for Automatic Language Detection. - description: >- - Specify options for [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). + description: Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). type: object additionalProperties: false properties: expected_languages: x-label: Expected languages - description: >- - List of languages expected in the audio file. Defaults to - `["all"]` when unspecified. See [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) - for more details. + description: List of languages expected in the audio file. Defaults to `["all"]` when unspecified. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. type: array items: x-label: language type: string fallback_language: x-label: Fallback language - description: > - If the detected language of the audio file is not in the list of - expected languages, the `fallback_language` is used. Specify - `["auto"]` to let our model choose the fallback language from - `expected_languages` with the highest confidence score. See - [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) - for more details. + description: | + If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. type: string - default: auto + default: "auto" code_switching: x-label: Code switching - description: > - Whether [code - switching](/speech-to-text/pre-recorded-audio/code-switching) - should be detected. + description: | + Whether [code switching](/speech-to-text/pre-recorded-audio/code-switching) should be detected. type: boolean default: false code_switching_confidence_threshold: x-label: Code switching confidence threshold - description: > - The confidence threshold for [code - switching](/speech-to-text/pre-recorded-audio/code-switching) - detection. If the code switching confidence is below this - threshold, the transcript will be processed in the language with - the highest `language_detection_confidence` score. + description: | + The confidence threshold for [code switching](/speech-to-text/pre-recorded-audio/code-switching) detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score. type: number minimum: 0 maximum: 1 default: 0.3 + multichannel: x-label: Multichannel - description: >- - Enable - [Multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) - transcription, can be true or false. + description: Enable [Multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) transcription, can be true or false. type: boolean default: false + prompt: x-label: Prompt - description: > - Provide natural language prompting of up to 1,500 words of - contextual information to the model. See the [Prompting - Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) - for best practices. - + description: | + Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices. - Note: This parameter is only supported for the Universal-3.5 Pro - model. + Note: This parameter is only supported for the Universal-3.5 Pro model. type: string + punctuate: x-label: Punctuate - description: >- - Enable [Automatic - Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio), - can be true or false + description: Enable [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false type: boolean default: true + redact_pii: x-label: Redact PII - description: >- - Redact PII from the transcribed text using the Redact PII model, can - be true or false. See [PII - Redaction](https://www.assemblyai.com/docs/pii-redaction) for more - details. + description: Redact PII from the transcribed text using the Redact PII model, can be true or false. Requires `format_text` to be `true`. See [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. type: boolean default: false + redact_pii_audio: x-label: Redact PII audio - description: >- - Generate a copy of the original media file with spoken PII "beeped" - out, can be true or false. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) - for more details. + description: Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. Requires `redact_pii` to be `true`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details. type: boolean default: false + redact_pii_audio_options: x-label: Specify options for PII redacted audio files. - description: >- - Specify options for [PII redacted - audio](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) - files. + description: Specify options for [PII redacted audio](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) files. type: object additionalProperties: false properties: return_redacted_no_speech_audio: x-label: Return redacted no speech audio - description: >- - By default, audio redaction provides redacted audio URLs only - when speech is detected. However, if your use-case specifically - requires redacted audio files even for silent audio files - without any dialogue, you can opt to receive these URLs by - setting this parameter to `true`. + description: By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`. Requires `redact_pii_audio` to be `true`. type: boolean default: false override_audio_redaction_method: x-label: Override audio redaction method - description: >- - Specify the method used to redact audio. By default, redacted - audio uses a beep sound. Set to `silence` to replace PII with - silence instead of a beep. + description: Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. type: string enum: - silence + redact_pii_audio_quality: x-label: Redact PII audio quality - description: >- - Controls the filetype of the audio created by redact_pii_audio. - Currently supports mp3 (default) and wav. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) - for more details. + description: Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details. default: mp3 - $ref: '#/components/schemas/RedactPiiAudioQuality' + $ref: "#/components/schemas/RedactPiiAudioQuality" + redact_pii_policies: x-label: Redact PII policies - description: >- - The list of PII Redaction policies to enable. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction) for more - details. + description: The list of PII Redaction policies to enable. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. type: array items: x-label: PII policy - $ref: '#/components/schemas/PiiPolicy' + $ref: "#/components/schemas/PiiPolicy" + redact_pii_sub: x-label: Redact PII substitution - description: >- - The replacement logic for detected PII, can be `entity_type` or - `hash`. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction) for more - details. + description: The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. oneOf: - - $ref: '#/components/schemas/SubstitutionPolicy' - - type: 'null' + - $ref: "#/components/schemas/SubstitutionPolicy" + - type: "null" default: hash + redact_pii_return_unredacted: x-label: Return unredacted transcript - description: > - When set to `true`, returns the original unredacted transcript - alongside the redacted one in the same response. Requires - `redact_pii` to be `true`, otherwise a 400 error is returned. - - - When enabled, the response includes the additional fields - `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. - The existing `text`, `words`, and `utterances` fields remain fully - redacted. When disabled (default), the response is unchanged and - contains only the redacted transcript. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction) for more - details. + description: | + When set to `true`, returns the original unredacted transcript alongside the redacted one in the same response. Requires `redact_pii` to be `true`, otherwise a 400 error is returned. + + When enabled, the response includes the additional fields `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. The existing `text`, `words`, and `utterances` fields remain fully redacted. When disabled (default), the response is unchanged and contains only the redacted transcript. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. type: boolean default: false + redact_static_entities: x-label: Redact static entities - description: > - A map of user-defined terms to redact, where each key is a redaction - label and each value is a list of exact terms to match (e.g. `{ - "INTERNAL_TOOL": ["Bearclaw", "Cubclaw"] }`). Each matching term in - the transcript is redacted using the `redact_pii_sub` substitution, - on top of standard PII Redaction. Useful for redacting specific, - predefined terms (proprietary names, internal codenames) that aren't - general PII categories. - - - This is a literal find-and-replace (tolerant of casing, surrounding - punctuation, and minor spacing/hyphenation), not a model — it does - not generalize beyond the terms you provide. Requires `redact_pii` - to be `true`, otherwise a 400 error is returned. When - `redact_pii_audio` is enabled, matched terms are also redacted in - the audio output. See [Static Entity - Redaction](https://www.assemblyai.com/docs/guardrails/redact-pii-from-transcripts#static-entity-redaction) - for more details. + description: | + A map of user-defined terms to redact, where each key is a redaction label and each value is a list of exact terms to match (e.g. `{ "INTERNAL_TOOL": ["Bearclaw", "Cubclaw"] }`). Each matching term in the transcript is redacted using the `redact_pii_sub` substitution, on top of standard PII Redaction. Useful for redacting specific, predefined terms (proprietary names, internal codenames) that aren't general PII categories. + + This is a literal find-and-replace (tolerant of casing, surrounding punctuation, and minor spacing/hyphenation), not a model — it does not generalize beyond the terms you provide. Requires `redact_pii` to be `true`, otherwise a 400 error is returned. When `redact_pii_audio` is enabled, matched terms are also redacted in the audio output. You can provide up to 100 labels, each with up to 200 terms of at most 200 characters; a label may contain only letters, numbers, spaces, underscores, and hyphens (max 80 characters). See [Static Entity Redaction](https://www.assemblyai.com/docs/guardrails/redact-pii-from-transcripts#static-entity-redaction) for more details. type: object additionalProperties: type: array items: type: string + sentiment_analysis: x-label: Sentiment Analysis - description: >- - Enable [Sentiment - Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis), - can be true or false + description: Enable [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis), can be true or false. Requires `punctuate` to be `true`. type: boolean default: false + speaker_labels: x-label: Speaker labels - description: >- - Enable [Speaker - diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), - can be true or false + description: Enable [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers), can be true or false. Requires `punctuate` to be `true`. type: boolean default: false + speaker_options: x-label: Specify options for speaker diarization. - description: >- - Specify options for [Speaker - diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). - Use this to set a range of possible speakers. + description: Specify options for [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers). Use this to set a range of possible speakers. Requires `speaker_labels` to be `true`, and cannot be used together with `speakers_expected`. When both bounds are set, `min_speakers_expected` must be less than or equal to `max_speakers_expected`. type: object additionalProperties: false properties: min_speakers_expected: x-label: Minimum speakers expected - description: >- - A hard lower limit on the number of speaker labels — the model - won't return fewer speakers than this. See [Set a range of - possible - speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) - for more details. + description: A hard lower limit on the number of speaker labels — the model won't return fewer speakers than this. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. type: integer - default: 1 max_speakers_expected: x-label: Maximum speakers expected - description: > - Setting this parameter too high may hurt model - accuracy - - A hard upper limit on the number of speaker labels. If more - people speak than this value, the additional speakers are merged - into existing labels. Setting it higher than the true number of - speakers can cause the model to over-split and return more - speakers than are actually present. The default depends on audio - duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 - for 10+ minutes. See [Set a range of possible - speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) - for more details. + description: | + Setting this parameter too high may hurt model accuracy + A hard upper limit on the number of speaker labels. If more people speak than this value, the additional speakers are merged into existing labels. Setting it higher than the true number of speakers can cause the model to over-split and return more speakers than are actually present. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. type: integer + speakers_expected: x-label: Speakers expected - description: >- - Tells the speaker label model how many speakers it should attempt to - identify. See [Set number of speakers - expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) - for more details. - type: - - integer - - 'null' + description: Tells the speaker label model how many speakers it should attempt to identify. Requires `speaker_labels` to be `true` and must be a positive integer; cannot be used together with `speaker_options`. See [Set number of speakers expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) for more details. + type: [integer, "null"] default: null + speech_models: x-label: Speech models - description: > - Optional. Supported values: `universal-3-5-pro`, `universal-2`. If - omitted, defaults to `universal-3-5-pro`. See [Model - Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) - for available models and routing behavior. + description: | + Optional. Supported values: `universal-3-5-pro`, `universal-2`. If omitted, defaults to `universal-3-5-pro`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. type: array items: x-label: Speech model - $ref: '#/components/schemas/SpeechModel' + $ref: "#/components/schemas/SpeechModel" default: - universal-3-5-pro + speech_threshold: x-label: Speech threshold - description: > + description: | Reject audio files that contain less than this fraction of speech. - - Valid values are in the range [0, 1] inclusive. See [Speech - Threshold](https://www.assemblyai.com/docs/speech-threshold) for - more details. - type: - - number - - 'null' + Valid values are in the range [0, 1] inclusive. See [Speech Threshold](https://www.assemblyai.com/docs/speech-threshold) for more details. + type: [number, "null"] format: float minimum: 0 maximum: 1 default: 0 + speech_understanding: x-label: Speech Understanding - description: > - Enable speech understanding tasks like - [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), - [Speaker - Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), - and [Custom - Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). - See the task-specific docs for available options and configuration. + description: | + Enable speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). See the task-specific docs for available options and configuration. type: object properties: request: oneOf: - - $ref: '#/components/schemas/TranslationRequestBody' - - $ref: '#/components/schemas/SpeakerIdentificationRequestBody' - - $ref: '#/components/schemas/CustomFormattingRequestBody' - - $ref: '#/components/schemas/SummarizationRequestBody' - - $ref: '#/components/schemas/ActionItemsRequestBody' + - $ref: "#/components/schemas/TranslationRequestBody" + - $ref: "#/components/schemas/SpeakerIdentificationRequestBody" + - $ref: "#/components/schemas/CustomFormattingRequestBody" + - $ref: "#/components/schemas/SummarizationRequestBody" + - $ref: "#/components/schemas/ActionItemsRequestBody" required: - request summarization: x-label: Enable Summarization - description: > - Enable - [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization), - can be true or false. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible summaries. See the [updated Summarization - page](https://www.assemblyai.com/docs/speech-understanding/summarization) - for details. - + description: | + Enable [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization), can be true or false. Requires both `punctuate` and `format_text` to be `true`, and cannot be enabled together with `auto_chapters`. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details. Note: This parameter is only supported for the Universal-2 model. type: boolean default: false deprecated: true + summary_model: x-label: Summary model - description: >- - The model to summarize the transcript. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible summaries. See the [updated Summarization - page](https://www.assemblyai.com/docs/speech-understanding/summarization) - for details. + description: The model to summarize the transcript. Must be set together with `summary_type`. Compatibility - `catchy` supports `gist` and `headline`; `informative` and `conversational` support `headline`, `paragraph`, `bullets`, and `bullets_verbose`. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details. default: informative deprecated: true - $ref: '#/components/schemas/SummaryModel' + $ref: "#/components/schemas/SummaryModel" + summary_type: x-label: Summary type - description: >- - The type of summary. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible summaries. See the [updated Summarization - page](https://www.assemblyai.com/docs/speech-understanding/summarization) - for details. + description: The type of summary. Must be set together with `summary_model`; see `summary_model` for the supported model and type combinations. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details. default: bullets deprecated: true - $ref: '#/components/schemas/SummaryType' + $ref: "#/components/schemas/SummaryType" + remove_audio_tags: x-label: Remove audio tags - description: > - Universal-3.5 Pro generates rich transcripts that can include inline - annotations such as audio event markers and speaker cues. Set to - `"all"` to remove all inline annotations, or `"speaker"` to remove - only speaker cues while keeping other annotations. - + description: | + Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. By default, all inline annotations are removed. - Note: This parameter is only supported for the Universal-3.5 Pro - model. + Note: This parameter is only supported for the Universal-3.5 Pro model. oneOf: - type: string enum: - all - speaker - - type: 'null' - default: null + - type: "null" + default: all + temperature: x-label: Temperature - description: > - Control the amount of randomness injected into the model's response. - See the [Prompting - Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) - for more details. - + description: | + Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details. - Note: This parameter can only be used with the Universal-3.5 Pro - model. + Note: This parameter only takes effect on the Universal-3.5 Pro model. type: number - minimum: 0 - maximum: 1 - default: 0 + minimum: 0.0 + maximum: 1.0 + default: 0.0 + webhook_auth_header_name: x-label: Webhook auth header name - description: >- - The header name to be sent with the transcript completed or failed - [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) - requests - type: - - string - - 'null' + description: The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. Must be 1-1000 characters and contain only ASCII letters, numbers, hyphens, and underscores. Requires `webhook_auth_header_value` and `webhook_url` to also be set. + type: [string, "null"] default: null + webhook_auth_header_value: x-label: Webhook auth header value - description: >- - The header value to send back with the transcript completed or - failed - [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) - requests for added security - type: - - string - - 'null' + description: The header value to send back with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests for added security. Must be 1-1000 characters and must not contain carriage returns or newlines. Requires `webhook_auth_header_name` and `webhook_url` to also be set. + type: [string, "null"] default: null + webhook_url: x-label: Webhook URL - description: > - The URL to which we send - [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) - requests. + description: | + The URL to which we send [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. type: string format: url + custom_topics: x-label: Enable custom topics - description: >- - This parameter does not currently have any functionality attached to - it. + description: This parameter does not currently have any functionality attached to it. type: boolean default: false deprecated: true + speech_model: x-label: Speech model - description: > - This parameter has been replaced with the `speech_models` parameter, - learn more about the `speech_models` parameter - [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + description: | + This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). oneOf: - - $ref: '#/components/schemas/SpeechModel' - - type: 'null' - deprecated: true + - $ref: "#/components/schemas/SpeechModel" + - type: "null" + deprecated: True + topics: x-label: Custom topics - description: >- - This parameter does not currently have any functionality attached to - it. + description: This parameter does not currently have any functionality attached to it. type: array items: x-label: Topic type: string deprecated: true + example: - speech_model: null - language_code: en_us - language_detection: true - language_confidence_threshold: 0.7 - punctuate: true - format_text: true - multichannel: true - webhook_url: https://your-webhook-url.tld/path - webhook_auth_header_name: webhook-secret - webhook_auth_header_value: webhook-secret-value - auto_highlights: true - audio_start_from: 10 - audio_end_at: 280 - filter_profanity: true - redact_pii: true - redact_pii_audio: true - redact_pii_audio_quality: mp3 - redact_pii_policies: - - us_social_security_number - - credit_card_number - redact_pii_sub: hash - speaker_labels: true - speakers_expected: 2 - content_safety: true - iab_categories: true - custom_spelling: [] - disfluencies: false - sentiment_analysis: true - auto_chapters: false - entity_detection: true - speech_threshold: 0.5 - summarization: false - summary_model: null - summary_type: null - custom_topics: true - topics: [] - remove_audio_tags: null - domain: null - speech_understanding: - request: - translation: - target_languages: - - es - - de - formal: true - match_original_utterance: true + { + speech_model: null, + language_code: "en_us", + language_detection: true, + language_confidence_threshold: 0.7, + punctuate: true, + format_text: true, + multichannel: true, + webhook_url: "https://your-webhook-url.tld/path", + webhook_auth_header_name: "webhook-secret", + webhook_auth_header_value: "webhook-secret-value", + auto_highlights: true, + audio_start_from: 10, + audio_end_at: 280, + filter_profanity: true, + redact_pii: true, + redact_pii_audio: true, + redact_pii_audio_quality: "mp3", + redact_pii_policies: + ["us_social_security_number", "credit_card_number"], + redact_pii_sub: "hash", + speaker_labels: true, + speakers_expected: 2, + content_safety: true, + iab_categories: true, + custom_spelling: [], + disfluencies: false, + sentiment_analysis: true, + auto_chapters: false, + entity_detection: true, + speech_threshold: 0.5, + summarization: false, + summary_model: null, + summary_type: null, + custom_topics: true, + topics: [], + remove_audio_tags: null, + domain: null, + speech_understanding: + { + request: + { + translation: + { + target_languages: ["es", "de"], + formal: true, + match_original_utterance: true, + }, + }, + }, + } + TranscriptParams: x-label: Transcript parameters description: The parameters for creating a transcript @@ -1683,8 +1407,7 @@ components: additionalProperties: false allOf: - type: object - required: - - audio_url + required: [audio_url] properties: audio_url: x-label: Audio URL @@ -1692,55 +1415,61 @@ components: type: string format: url additionalProperties: false - - $ref: '#/components/schemas/TranscriptOptionalParams' + - $ref: "#/components/schemas/TranscriptOptionalParams" example: - speech_model: null - language_code: en_us - language_detection: true - language_confidence_threshold: 0.7 - audio_url: https://assembly.ai/wildfires.mp3 - punctuate: true - format_text: true - multichannel: true - webhook_url: https://your-webhook-url/path - webhook_auth_header_name: webhook-secret - webhook_auth_header_value: webhook-secret-value - auto_highlights: true - audio_start_from: 10 - audio_end_at: 280 - filter_profanity: true - redact_pii: true - redact_pii_audio: true - redact_pii_audio_quality: mp3 - redact_pii_policies: - - us_social_security_number - - credit_card_number - redact_pii_sub: hash - speaker_labels: true - speakers_expected: 2 - content_safety: true - iab_categories: true - custom_spelling: [] - disfluencies: false - sentiment_analysis: true - auto_chapters: false - entity_detection: true - speech_threshold: 0.5 - summarization: false - summary_model: null - summary_type: null - custom_topics: true - topics: [] - remove_audio_tags: null - domain: null - speech_understanding: - request: - translation: - target_languages: - - es - - de - formal: true - match_original_utterance: true + { + speech_model: null, + language_code: "en_us", + language_detection: true, + language_confidence_threshold: 0.7, + audio_url: "https://assembly.ai/wildfires.mp3", + punctuate: true, + format_text: true, + multichannel: true, + webhook_url: "https://your-webhook-url/path", + webhook_auth_header_name: "webhook-secret", + webhook_auth_header_value: "webhook-secret-value", + auto_highlights: true, + audio_start_from: 10, + audio_end_at: 280, + filter_profanity: true, + redact_pii: true, + redact_pii_audio: true, + redact_pii_audio_quality: "mp3", + redact_pii_policies: + ["us_social_security_number", "credit_card_number"], + redact_pii_sub: "hash", + speaker_labels: true, + speakers_expected: 2, + content_safety: true, + iab_categories: true, + custom_spelling: [], + disfluencies: false, + sentiment_analysis: true, + auto_chapters: false, + entity_detection: true, + speech_threshold: 0.5, + summarization: false, + summary_model: null, + summary_type: null, + custom_topics: true, + topics: [], + remove_audio_tags: null, + domain: null, + speech_understanding: + { + request: + { + translation: + { + target_languages: ["es", "de"], + formal: true, + match_original_utterance: true, + }, + }, + }, + } + SummaryModel: type: string x-label: Summary model @@ -1757,6 +1486,7 @@ components: label: Conversational catchy: label: Catchy + SummaryType: type: string x-label: Summary type @@ -1779,11 +1509,10 @@ components: label: Headline paragraph: label: Paragraph + TranscriptCustomSpelling: x-label: Custom spelling - description: >- - Object containing words or phrases to replace, and the word or phrase to - replace with + description: Object containing words or phrases to replace, and the word or phrase to replace with x-fern-sdk-group-name: transcripts type: object additionalProperties: false @@ -1800,13 +1529,9 @@ components: x-label: To description: Word to replace with type: string - required: - - from - - to - example: - from: - - dicarlo - to: Decarlo + required: [from, to] + example: { from: ["dicarlo"], to: "Decarlo" } + TranscriptUtterance: type: object x-label: Utterance @@ -1822,9 +1547,7 @@ components: maximum: 1 start: x-label: Start - description: >- - The starting time, in milliseconds, of the utterance in the audio - file + description: The starting time, in milliseconds, of the utterance in the audio file type: integer end: x-label: End @@ -1840,29 +1563,18 @@ components: type: array items: x-label: Word - $ref: '#/components/schemas/TranscriptWord' + $ref: "#/components/schemas/TranscriptWord" channel: x-label: Channel - description: >- - The channel of this utterance. The left and right channels are - channels 1 and 2. Additional channels increment the channel number - sequentially. - type: - - string - - 'null' + description: The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + type: [string, "null"] speaker: x-label: Speaker - description: >- - The speaker of this utterance, where each speaker is assigned a - sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker - B, etc. + description: The speaker of this utterance, where each speaker is assigned a sequential capital letter - e.g. "A" for Speaker A, "B" for Speaker B, etc. type: string translated_texts: x-label: Translated texts - description: >- - Translations keyed by language code (e.g., `{"es": "Texto - traducido", "de": "Übersetzter Text"}`). Only present when - `match_original_utterance` is enabled with translation. + description: 'Translations keyed by language code (e.g., `{"es": "Texto traducido", "de": "Übersetzter Text"}`). Only present when `match_original_utterance` is enabled with translation.' type: object additionalProperties: type: string @@ -1874,103 +1586,127 @@ components: - words - speaker example: - confidence: 0.9359033333333334 - end: 26950 - speaker: A - start: 250 - text: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts throughout the US. Skylines from Maine to Maryland to Minnesota - are gray and smoggy. And in some places, the air quality warnings - include the warning to stay inside. We wanted to better understand - what's happening here and why, so we called Peter de Carlo, an - associate professor in the Department of Environmental Health and - Engineering at Johns Hopkins University Varsity. Good morning, - professor. - words: - - text: Smoke - start: 250 - end: 650 - confidence: 0.97503 - speaker: A - - text: from - start: 730 - end: 1022 - confidence: 0.99999 - speaker: A - - text: hundreds - start: 1076 - end: 1418 - confidence: 0.99843 - speaker: A - - text: of - start: 1434 - end: 1614 - confidence: 0.85 - speaker: A - - text: wildfires - start: 1652 - end: 2346 - confidence: 0.89657 - speaker: A - - text: in - start: 2378 - end: 2526 - confidence: 0.99994 - speaker: A - - text: Canada - start: 2548 - end: 3130 - confidence: 0.93864 - speaker: A - - text: is - start: 3210 - end: 3454 - confidence: 0.999 - speaker: A - - text: triggering - start: 3492 - end: 3946 - confidence: 0.75366 - speaker: A - - text: air - start: 3978 - end: 4174 - confidence: 1 - speaker: A - - text: quality - start: 4212 - end: 4558 - confidence: 0.87745 - speaker: A - - text: alerts - start: 4644 - end: 5114 - confidence: 0.94739 - speaker: A - - text: throughout - start: 5162 - end: 5466 - confidence: 0.99726 - speaker: A - - text: the - start: 5498 - end: 5694 - confidence: 0.79 - speaker: A - - text: US. - start: 5732 - end: 6382 - confidence: 0.88 - speaker: A + { + confidence: 0.9359033333333334, + end: 26950, + speaker: "A", + start: 250, + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor.", + words: + [ + { + text: "Smoke", + start: 250, + end: 650, + confidence: 0.97503, + speaker: "A", + }, + { + text: "from", + start: 730, + end: 1022, + confidence: 0.99999, + speaker: "A", + }, + { + text: "hundreds", + start: 1076, + end: 1418, + confidence: 0.99843, + speaker: "A", + }, + { + text: "of", + start: 1434, + end: 1614, + confidence: 0.85, + speaker: "A", + }, + { + text: "wildfires", + start: 1652, + end: 2346, + confidence: 0.89657, + speaker: "A", + }, + { + text: "in", + start: 2378, + end: 2526, + confidence: 0.99994, + speaker: "A", + }, + { + text: "Canada", + start: 2548, + end: 3130, + confidence: 0.93864, + speaker: "A", + }, + { + text: "is", + start: 3210, + end: 3454, + confidence: 0.999, + speaker: "A", + }, + { + text: "triggering", + start: 3492, + end: 3946, + confidence: 0.75366, + speaker: "A", + }, + { + text: "air", + start: 3978, + end: 4174, + confidence: 1.0, + speaker: "A", + }, + { + text: "quality", + start: 4212, + end: 4558, + confidence: 0.87745, + speaker: "A", + }, + { + text: "alerts", + start: 4644, + end: 5114, + confidence: 0.94739, + speaker: "A", + }, + { + text: "throughout", + start: 5162, + end: 5466, + confidence: 0.99726, + speaker: "A", + }, + { + text: "the", + start: 5498, + end: 5694, + confidence: 0.79, + speaker: "A", + }, + { + text: "US.", + start: 5732, + end: 6382, + confidence: 0.88, + speaker: "A", + }, + ], + } + SubstitutionPolicy: x-label: Redact PII substitution type: string x-fern-sdk-group-name: transcripts - description: >- - The replacement logic for detected PII, can be `entity_name` or `hash`. - See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for - more details. + description: The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. enum: - entity_name - hash @@ -1979,14 +1715,11 @@ components: label: Entity name hash: label: Hash + RedactPiiAudioQuality: x-label: Redact PII audio quality type: string - description: >- - Controls the filetype of the audio created by redact_pii_audio. - Currently supports mp3 (default) and wav. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) - for more details. + description: Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details. x-fern-sdk-group-name: transcripts enum: - mp3 @@ -2000,15 +1733,14 @@ components: pascal: Mp3 screamingSnake: MP3 wav: - description: >- - WAV audio format is the highest quality (no compression) and larger - size than MP3. + description: WAV audio format is the highest quality (no compression) and larger size than MP3. x-aai-enum: mp3: label: MP3 wav: label: WAV - example: mp3 + example: "mp3" + PiiPolicy: x-label: PII policy description: The type of PII to redact @@ -2071,15 +1803,15 @@ components: - zodiac_sign x-fern-enum: account_number: - description: >- - Customer account or membership identification number (e.g., Policy - No. 10042992, Member ID: HZ-5235-001) + description: + "Customer account or membership identification number (e.g., Policy + No. 10042992, Member ID: HZ-5235-001)" banking_information: description: Banking information, including account and routing numbers blood_type: description: Blood type (e.g., O-, AB positive) credit_card_cvv: - description: 'Credit card verification code (e.g., CVV: 080)' + description: "Credit card verification code (e.g., CVV: 080)" credit_card_expiration: description: Expiration date of a credit card credit_card_number: @@ -2087,56 +1819,52 @@ components: date: description: Specific calendar date (e.g., December 18) date_interval: - description: >- + description: Broader time periods, including date ranges, months, seasons, years, and decades (e.g., 2020-2021, 5-9 May, January 1984) date_of_birth: - description: 'Date of birth (e.g., Date of Birth: March 7,1961)' + description: "Date of birth (e.g., Date of Birth: March 7,1961)" drivers_license: description: Driver's license number. (e.g., DL# 356933-540) drug: - description: >- + description: Medications, vitamins, or supplements (e.g., Advil, Acetaminophen, Panadol) duration: - description: >- - Measurements of time expressed as a numerical value plus a unit - (e.g., 8 months, 2 years) + description: + Measurements of time expressed as a numerical value plus a unit (e.g., + 8 months, 2 years) email_address: description: Email address (e.g., support@assemblyai.com) event: description: Name of an event or holiday (e.g., Olympics, Yom Kippur) filename: - description: >- + description: Names of computer files, including the extension or filepath (e.g., Taxes/2012/brad-tax-returns.pdf) gender: description: Terms indicating gender identity (e.g., female, male, non-binary) gender_sexuality: - description: >- + description: Terms indicating gender identity or sexual orientation, including slang terms (e.g., female, bisexual, trans) healthcare_number: - description: >- - Healthcare numbers and health plan beneficiary numbers (e.g., Policy - No.: 5584-486-674-YM) + description: + "Healthcare numbers and health plan beneficiary numbers (e.g., + Policy No.: 5584-486-674-YM)" injury: description: Bodily injury (e.g., I broke my arm, I have a sprained wrist) ip_address: - description: >- - Internet IP address, including IPv4 and IPv6 formats (e.g., - 192.168.0.1) + description: Internet IP address, including IPv4 and IPv6 formats (e.g., 192.168.0.1) language: description: Name of a natural language (e.g., Spanish, French) location: - description: >- - Any Location reference including mailing address, postal code, city, - state, province, country, or coordinates. (e.g., Lake Victoria, 145 + description: + Any Location reference including mailing address, postal code, + city, state, province, country, or coordinates. (e.g., Lake Victoria, 145 Windsor St., 90210) location_address: - description: >- - A complete mailing address (e.g., 145 Windsor St., Toronto, ON M5A - 2P5) + description: A complete mailing address (e.g., 145 Windsor St., Toronto, ON M5A 2P5) location_address_street: description: Street-level component of an address (e.g., 145 Windsor St.) location_city: @@ -2150,43 +1878,41 @@ components: location_zip: description: Postal or ZIP code (e.g., M5A 2P5, 90210) marital_status: - description: >- + description: Terms indicating marital status (e.g., Single, common-law, ex-wife, married) medical_condition: - description: >- + description: Name of a medical condition, disease, syndrome, deficit, or disorder (e.g., chronic fatigue syndrome, arrhythmia, depression) medical_process: - description: >- + description: Medical process, including treatments, procedures, and tests (e.g., heart surgery, CT scan) money_amount: description: Name and/or amount of currency (e.g., 15 pesos, $94.50) nationality: - description: >- + description: Terms indicating nationality, ethnicity, or race (e.g., American, Asian, Caucasian) number_sequence: - description: >- + description: Numerical PII (including alphanumeric strings) that doesn't fall under other categories occupation: description: Job title or profession (e.g., professor, actors, engineer, CPA) organization: - description: >- + description: Name of an organization (e.g., CNN, McDonalds, University of Alaska, Northwest General Hospital) organization_medical_facility: - description: >- + description: Name of a medical facility (e.g., Mayo Clinic, Northwest General Hospital) passport_number: - description: >- - Passport numbers, issued by any country (e.g., PA4568332, - NU3C6L86S12) + description: Passport numbers, issued by any country (e.g., PA4568332, NU3C6L86S12) password: - description: >- + description: Account passwords, PINs, access keys, or verification answers (e.g., 27%alfalfa, temp1234, My mother's maiden name is Smith) person_age: @@ -2196,19 +1922,16 @@ components: phone_number: description: Telephone or fax number physical_attribute: - description: >- - Distinctive bodily attributes, including race (e.g., I'm 190cm tall, - He belongs to the Black students' association) + description: Distinctive bodily attributes, including race + (e.g., I'm 190cm tall, He belongs to the Black students' association) political_affiliation: - description: >- + description: Terms referring to a political party, movement, or ideology (e.g., Republican, Liberal) religion: description: Terms indicating religious affiliation (e.g., Hindu, Catholic) sexuality: - description: >- - Terms indicating sexual orientation (e.g., heterosexual, bisexual, - gay) + description: Terms indicating sexual orientation (e.g., heterosexual, bisexual, gay) statistics: description: Medical statistics (e.g., 18%, 18 percent) time: @@ -2220,9 +1943,9 @@ components: username: description: Usernames, login names, or handles (e.g., @AssemblyAI) vehicle_id: - description: >- - Vehicle identification numbers (VINs), vehicle serial numbers, and - license plate numbers (e.g., 5FNRL38918B111818, BIF7547) + description: + Vehicle identification numbers (VINs), vehicle serial numbers, + and license plate numbers (e.g., 5FNRL38918B111818, BIF7547) zodiac_sign: description: Names of Zodiac signs (e.g., Aries, Taurus) x-aai-enum: @@ -2334,24 +2057,21 @@ components: label: Vehicle ID zodiac_sign: label: Zodiac sign + SpeechModel: x-label: Speech model type: string - description: >- - The speech model to use for the transcription. See [Model - Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) - for available models. + description: The speech model to use for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. enum: - universal-3-5-pro - universal-2 x-fern-sdk-group-name: transcripts + TranscriptLanguageCode: x-label: Language code type: string - description: > - The language of your audio file. Possible values are found in [Supported - Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - + description: | + The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages). The default value is 'en_us'. x-fern-sdk-group-name: transcripts enum: @@ -2421,7 +2141,7 @@ components: - mr - mn - ne - - 'no' + - no - nn - oc - pa @@ -2590,7 +2310,7 @@ components: label: Mongolian ne: label: Nepali - 'no': + no: label: Norwegian nn: label: Norwegian Nynorsk @@ -2662,12 +2382,11 @@ components: label: Yiddish yo: label: Yoruba + TranscriptStatus: x-label: Status type: string - description: >- - The status of your transcript. Possible values are queued, processing, - completed, or error. + description: The status of your transcript. Possible values are queued, processing, completed, or error. x-fern-sdk-group-name: transcripts enum: - queued @@ -2692,6 +2411,7 @@ components: label: Completed error: label: Error + TranscriptReadyStatus: x-label: Status type: string @@ -2710,6 +2430,7 @@ components: label: Completed error: label: Error + Transcript: x-label: Transcript description: A transcript object @@ -2719,870 +2440,575 @@ components: properties: audio_channels: x-label: Audio channels - description: >- - The number of audio channels in the audio file. This is only present - when - [multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) - is enabled. + description: The number of audio channels in the audio file. This is only present when [multichannel](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) is enabled. type: integer + audio_duration: x-label: Audio duration description: The duration of this transcript object's media file, in seconds - type: - - integer - - 'null' + type: [integer, "null"] + audio_end_at: x-label: Audio end at - description: >- - The point in time, in milliseconds, in the file at which the - transcription was terminated. See [Set the start and end of the - transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) - for more details. - type: - - integer - - 'null' + description: The point in time, in milliseconds, in the file at which the transcription was terminated. See [Set the start and end of the transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) for more details. + type: [integer, "null"] + audio_start_from: x-label: Audio start from - description: >- - The point in time, in milliseconds, in the file at which the - transcription was started. See [Set the start and end of the - transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) - for more details. - type: - - integer - - 'null' + description: The point in time, in milliseconds, in the file at which the transcription was started. See [Set the start and end of the transcript](https://www.assemblyai.com/docs/pre-recorded-audio/set-the-start-and-end-of-the-transcript) for more details. + type: [integer, "null"] + audio_url: x-label: Audio URL description: The URL of the media that was transcribed type: string format: url + auto_chapters: x-label: Auto Chapters enabled - description: > - Whether [Auto - Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) - is enabled, can be true or false. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible chapter summaries. See the [updated Auto - Chapters - page](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) - for details. - + description: | + Whether [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) is enabled, can be true or false. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible chapter summaries. See the [updated Auto Chapters page](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) for details. Note: This parameter is only supported for the Universal-2 model. - type: - - boolean - - 'null' + type: [boolean, "null"] deprecated: true + auto_highlights: x-label: Key Phrases - description: >- - Whether [Key - Phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) - is enabled, either true or false + description: Whether [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) is enabled, either true or false type: boolean + auto_highlights_result: x-label: Key Phrases result - description: > + description: | An array of results for the Key Phrases model, if it is enabled. - - See [Key - Phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) - for more information. + See [Key Phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) for more information. oneOf: - - $ref: '#/components/schemas/AutoHighlightsResult' - - type: 'null' + - $ref: "#/components/schemas/AutoHighlightsResult" + - type: "null" + chapters: x-label: Chapters - description: >- - An array of temporally sequential chapters for the audio file. See - [Auto - Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) - for more information. - type: - - array - - 'null' + description: An array of temporally sequential chapters for the audio file. See [Auto Chapters](https://www.assemblyai.com/docs/speech-understanding/auto-chapters) for more information. + type: [array, "null"] items: x-label: Chapter - $ref: '#/components/schemas/Chapter' + $ref: "#/components/schemas/Chapter" + confidence: x-label: Confidence - description: >- - The confidence score for the transcript, between 0.0 (low - confidence) and 1.0 (high confidence) - type: - - number - - 'null' + description: The confidence score for the transcript, between 0.0 (low confidence) and 1.0 (high confidence) + type: [number, "null"] format: double minimum: 0 maximum: 1 + content_safety: x-label: Content Moderation - description: >- - Whether [Content - Moderation](https://www.assemblyai.com/docs/content-moderation) is - enabled, can be true or false - type: - - boolean - - 'null' + description: Whether [Content Moderation](https://www.assemblyai.com/docs/content-moderation) is enabled, can be true or false + type: [boolean, "null"] + content_safety_labels: x-label: Content Moderation labels - description: > - An array of results for the Content Moderation model, if it is - enabled. - - See [Content - moderation](https://www.assemblyai.com/docs/content-moderation) for - more information. + description: | + An array of results for the Content Moderation model, if it is enabled. + See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information. oneOf: - - $ref: '#/components/schemas/ContentSafetyLabelsResult' - - type: 'null' + - $ref: "#/components/schemas/ContentSafetyLabelsResult" + - type: "null" + custom_spelling: x-label: Custom spellings - description: >- - Customize how words are spelled and formatted using to and from - values. See [Custom - Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) - for more details. - type: - - array - - 'null' + description: Customize how words are spelled and formatted using to and from values. Each `to` value must be a single word, and each `from` phrase can contain at most 5 words. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. + type: [array, "null"] items: x-label: Custom spelling - $ref: '#/components/schemas/TranscriptCustomSpelling' + $ref: "#/components/schemas/TranscriptCustomSpelling" + disfluencies: x-label: Disfluencies - description: >- - Transcribe [Filler - Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), - like "umm", in your media file; can be true or false. Supported on - Universal-3.5 Pro and Universal-2. - type: - - boolean - - 'null' + description: Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2. + type: [boolean, "null"] + domain: x-label: Domain - description: > - The domain-specific model applied to the transcript. When set to - `"medical-v1"`, [Medical - Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) - was used to improve accuracy for medical terminology. - type: - - string - - 'null' + description: | + The domain-specific model applied to the transcript. When set to `"medical-v1"`, [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) was used to improve accuracy for medical terminology. + type: [string, "null"] + entities: x-label: Entities - description: > - An array of results for the Entity Detection model, if it is - enabled. - - See [Entity - detection](https://www.assemblyai.com/docs/speech-understanding/entity-detection) - for more information. - type: - - array - - 'null' + description: | + An array of results for the Entity Detection model, if it is enabled. + See [Entity detection](https://www.assemblyai.com/docs/speech-understanding/entity-detection) for more information. + type: [array, "null"] items: x-label: Entity - $ref: '#/components/schemas/Entity' + $ref: "#/components/schemas/Entity" + entity_detection: x-label: Entity Detection - description: >- - Whether [Entity - Detection](https://www.assemblyai.com/docs/speech-understanding/entity-detection) - is enabled, can be true or false - type: - - boolean - - 'null' + description: Whether [Entity Detection](https://www.assemblyai.com/docs/speech-understanding/entity-detection) is enabled, can be true or false + type: [boolean, "null"] + error: x-label: Error description: Error message of why the transcript failed type: string + filter_profanity: x-label: Filter profanity - description: >- - Whether [Profanity - Filtering](https://www.assemblyai.com/docs/profanity-filtering) is - enabled, either true or false - type: - - boolean - - 'null' + description: Whether [Profanity Filtering](https://www.assemblyai.com/docs/profanity-filtering) is enabled, either true or false + type: [boolean, "null"] + format_text: x-label: Format text - description: >- - Whether [Text - Formatting](https://www.assemblyai.com/docs/pre-recorded-audio) is - enabled, either true or false - type: - - boolean - - 'null' + description: Whether [Text Formatting](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false + type: [boolean, "null"] + iab_categories: x-label: Topic Detection - description: >- - Whether [Topic - Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) - is enabled, can be true or false - type: - - boolean - - 'null' + description: Whether [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) is enabled, can be true or false + type: [boolean, "null"] + iab_categories_result: x-label: Topic Detection result - description: > + description: | The result of the Topic Detection model, if it is enabled. - - See [Topic - Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) - for more information. + See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) for more information. oneOf: - - $ref: '#/components/schemas/TopicDetectionModelResult' - - type: 'null' + - $ref: "#/components/schemas/TopicDetectionModelResult" + - type: "null" + id: x-label: ID description: The unique identifier of your transcript type: string format: uuid + keyterms_prompt: x-label: Keyterms prompt - description: > - Improve accuracy with up to 200 (for Universal-2) or 1000 (for - Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words - per phrase). See [Keyterms - Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) - for more details. + description: | + Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) for more details. type: array items: x-label: Keyterm type: string + language_code: x-label: Language code - description: > + description: | The language of your audio file. - - Possible values are found in [Supported - Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages). - + Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages). The default value is 'en_us'. anyOf: - - $ref: '#/components/schemas/TranscriptLanguageCode' + - $ref: "#/components/schemas/TranscriptLanguageCode" - type: string x-ts-type: LiteralUnion x-go-type: TranscriptLanguageCode - language_codes: - description: > - The language codes of your audio file. Used for [Code - switching](/speech-to-text/pre-recorded-audio/code-switching) + language_codes: + description: | + The language codes of your audio file. Used for [Code switching](/speech-to-text/pre-recorded-audio/code-switching) One of the values specified must be `en`. - type: - - array - - 'null' + type: [array, "null"] items: x-label: Language code - $ref: '#/components/schemas/TranscriptLanguageCode' + $ref: "#/components/schemas/TranscriptLanguageCode" + language_confidence: x-label: Language confidence - description: >- - The confidence score for the detected language, between 0.0 (low - confidence) and 1.0 (high confidence). See [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) - for more details. - type: - - number - - 'null' + description: The confidence score for the detected language, between 0.0 (low confidence) and 1.0 (high confidence). See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. + type: [number, "null"] format: double minimum: 0 maximum: 1 + language_confidence_threshold: x-label: Language confidence threshold - description: > + description: | The confidence threshold for the automatically detected language. - - An error will be returned if the language confidence is below this - threshold. - - See [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) - for more details. - type: - - number - - 'null' + An error will be returned if the language confidence is below this threshold. + See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. + type: [number, "null"] format: float minimum: 0 maximum: 1 + language_detection: x-label: Language detection - description: >- - Whether [Automatic language - detection](/pre-recorded-audio/automatic-language-detection) is - enabled, either true or false - type: - - boolean - - 'null' + description: Whether [Automatic language detection](/pre-recorded-audio/automatic-language-detection) is enabled, either true or false + type: [boolean, "null"] + language_detection_options: x-label: Specify options for Automatic Language Detection. - description: >- - Specify options for [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). + description: Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). type: object additionalProperties: false properties: expected_languages: x-label: Expected languages - description: >- - List of languages expected in the audio file. Defaults to - `["all"]` when unspecified. See [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) - for more details. + description: List of languages expected in the audio file. Defaults to `["all"]` when unspecified. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. type: array items: x-label: language type: string fallback_language: x-label: Fallback language - description: > - If the detected language of the audio file is not in the list of - expected languages, the `fallback_language` is used. Specify - `["auto"]` to let our model choose the fallback language from - `expected_languages` with the highest confidence score. See - [Automatic Language - Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) - for more details. + description: | + If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. type: string - default: auto + default: "auto" code_switching: x-label: Code switching - description: > - Whether [code - switching](/speech-to-text/pre-recorded-audio/code-switching) - should be detected. + description: | + Whether [code switching](/speech-to-text/pre-recorded-audio/code-switching) should be detected. type: boolean default: false code_switching_confidence_threshold: x-label: Code switching confidence threshold - description: > - The confidence threshold for [code - switching](/speech-to-text/pre-recorded-audio/code-switching) - detection. If the code switching confidence is below this - threshold, the transcript will be processed in the language with - the highest `language_detection_confidence` score. + description: | + The confidence threshold for [code switching](/speech-to-text/pre-recorded-audio/code-switching) detection. If the code switching confidence is below this threshold, the transcript will be processed in the language with the highest `language_detection_confidence` score. type: number minimum: 0 maximum: 1 default: 0.3 + multichannel: x-label: Multichannel - description: >- - Whether [Multichannel - transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) - was enabled in the transcription request, either true or false - type: - - boolean - - 'null' + description: Whether [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) was enabled in the transcription request, either true or false + type: [boolean, "null"] + prompt: x-label: Prompt - description: > - Provide natural language prompting of up to 1,500 words of - contextual information to the model. See the [Prompting - Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) - for best practices. + description: | + Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices. - - Note: This parameter is only supported for the Universal-3.5 Pro - model. + Note: This parameter is only supported for the Universal-3.5 Pro model. type: string + punctuate: x-label: Punctuate - description: >- - Whether [Automatic - Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio) is - enabled, either true or false - type: - - boolean - - 'null' + description: Whether [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false + type: [boolean, "null"] + redact_pii: x-label: Redact PII - description: >- - Whether [PII - Redaction](https://www.assemblyai.com/docs/pii-redaction) is - enabled, either true or false + description: Whether [PII Redaction](https://www.assemblyai.com/docs/pii-redaction) is enabled, either true or false type: boolean + redact_pii_audio: x-label: Redact PII audio - description: > + description: | Whether a redacted version of the audio file was generated, + either true or false. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. + type: [boolean, "null"] - either true or false. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) - for more information. - type: - - boolean - - 'null' redact_pii_audio_options: x-label: Redact PII audio options - description: > + description: | The options for PII-redacted audio, if redact_pii_audio is enabled. - - See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) - for more information. + See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. type: object additionalProperties: false properties: return_redacted_no_speech_audio: x-label: Return redacted no speech audio - description: >- - By default, audio redaction provides redacted audio URLs only - when speech is detected. However, if your use-case specifically - requires redacted audio files even for silent audio files - without any dialogue, you can opt to receive these URLs by - setting this parameter to `true`. + description: By default, audio redaction provides redacted audio URLs only when speech is detected. However, if your use-case specifically requires redacted audio files even for silent audio files without any dialogue, you can opt to receive these URLs by setting this parameter to `true`. Requires `redact_pii_audio` to be `true`. type: boolean default: false override_audio_redaction_method: x-label: Override audio redaction method - description: >- - Specify the method used to redact audio. By default, redacted - audio uses a beep sound. Set to `silence` to replace PII with - silence instead of a beep. + description: Specify the method used to redact audio. By default, redacted audio uses a beep sound. Set to `silence` to replace PII with silence instead of a beep. type: string enum: - silence + redact_pii_audio_quality: x-label: Redact PII audio quality - description: > - The audio quality of the PII-redacted audio file, if - redact_pii_audio is enabled. - - See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) - for more information. + description: | + The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled. + See [PII redaction](https://www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more information. oneOf: - - $ref: '#/components/schemas/RedactPiiAudioQuality' - - type: 'null' + - $ref: "#/components/schemas/RedactPiiAudioQuality" + - type: "null" + redact_pii_policies: x-label: Redact PII policies - description: > - The list of PII Redaction policies that were enabled, if PII - Redaction is enabled. - - See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) - for more information. - type: - - array - - 'null' + description: | + The list of PII Redaction policies that were enabled, if PII Redaction is enabled. + See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. + type: [array, "null"] items: x-label: PII policy - $ref: '#/components/schemas/PiiPolicy' + $ref: "#/components/schemas/PiiPolicy" + redact_pii_sub: x-label: Redact PII substitution - description: >- - The replacement logic for detected PII, can be `entity_type` or - `hash`. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction) for more - details. - $ref: '#/components/schemas/SubstitutionPolicy' + description: The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more details. + $ref: "#/components/schemas/SubstitutionPolicy" + redact_pii_return_unredacted: x-label: Return unredacted transcript - description: > - Whether the original unredacted transcript was also returned - alongside the redacted one. When `true`, the response includes - `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. - See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) - for more information. - type: - - boolean - - 'null' + description: | + Whether the original unredacted transcript was also returned alongside the redacted one. When `true`, the response includes `unredacted_text`, `unredacted_words`, and `unredacted_utterances`. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. + type: [boolean, "null"] + sentiment_analysis: x-label: Sentiment Analysis - description: >- - Whether [Sentiment - Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis) - is enabled, can be true or false - type: - - boolean - - 'null' + description: Whether [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis) is enabled, can be true or false + type: [boolean, "null"] + sentiment_analysis_results: x-label: Sentiment Analysis results - description: > - An array of results for the Sentiment Analysis model, if it is - enabled. - - See [Sentiment - Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis) - for more information. - type: - - array - - 'null' + description: | + An array of results for the Sentiment Analysis model, if it is enabled. + See [Sentiment Analysis](https://www.assemblyai.com/docs/speech-understanding/sentiment-analysis) for more information. + type: [array, "null"] items: x-label: Sentiment Analysis result - $ref: '#/components/schemas/SentimentAnalysisResult' + $ref: "#/components/schemas/SentimentAnalysisResult" + speaker_labels: x-label: Speaker labels - description: >- - Whether [Speaker - diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) - is enabled, can be true or false - type: - - boolean - - 'null' + description: Whether [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, can be true or false + type: [boolean, "null"] + speakers_expected: x-label: Speakers expected - description: >- - Tell the speaker label model how many speakers it should attempt to - identify. See [Set number of speakers - expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) - for more details. - type: - - integer - - 'null' + description: Tell the speaker label model how many speakers it should attempt to identify. See [Set number of speakers expected](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-number-of-speakers-expected) for more details. + type: [integer, "null"] + speech_model_used: x-label: Speech model used - description: >- - The speech model that was actually used for the transcription. See - [Model - Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) - for available models. + description: The speech model that was actually used for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. type: string - $ref: '#/components/schemas/SpeechModel' + $ref: "#/components/schemas/SpeechModel" + speech_models: x-label: Speech models - description: > - List of speech models that were used (in priority order) to - transcribe the audio. If not specified in the request, this defaults - to `universal-3-5-pro`. See [Model - Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) - for available models and routing behavior. - type: - - array - - 'null' + description: | + List of speech models that were used (in priority order) to transcribe the audio. If not specified in the request, this defaults to `universal-3-5-pro`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. + type: [array, "null"] items: x-label: Speech model - $ref: '#/components/schemas/SpeechModel' + $ref: "#/components/schemas/SpeechModel" + speech_threshold: x-label: Speech threshold - description: > - Defaults to null. Reject audio files that contain less than this - fraction of speech. - - Valid values are in the range [0, 1] inclusive. See [Speech - Threshold](https://www.assemblyai.com/docs/speech-threshold) for - more details. - type: - - number - - 'null' + description: | + Defaults to null. Reject audio files that contain less than this fraction of speech. + Valid values are in the range [0, 1] inclusive. See [Speech Threshold](https://www.assemblyai.com/docs/speech-threshold) for more details. + type: [number, "null"] minimum: 0 maximum: 1 format: float + speech_understanding: x-label: Speech Understanding - description: > - Speech understanding tasks like - [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), - [Speaker - Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), - and [Custom - Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). - See the task-specific docs for available options and configuration. + description: | + Speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). See the task-specific docs for available options and configuration. type: object properties: request: oneOf: - - $ref: '#/components/schemas/TranslationRequestBody' - - $ref: '#/components/schemas/SpeakerIdentificationRequestBody' - - $ref: '#/components/schemas/CustomFormattingRequestBody' - - $ref: '#/components/schemas/SummarizationRequestBody' - - $ref: '#/components/schemas/ActionItemsRequestBody' + - $ref: "#/components/schemas/TranslationRequestBody" + - $ref: "#/components/schemas/SpeakerIdentificationRequestBody" + - $ref: "#/components/schemas/CustomFormattingRequestBody" + - $ref: "#/components/schemas/SummarizationRequestBody" + - $ref: "#/components/schemas/ActionItemsRequestBody" response: oneOf: - - $ref: '#/components/schemas/TranslationResponse' - - $ref: '#/components/schemas/SpeakerIdentificationResponse' - - $ref: '#/components/schemas/CustomFormattingResponse' - - $ref: '#/components/schemas/SummarizationResponse' - - $ref: '#/components/schemas/ActionItemsResponse' + - $ref: "#/components/schemas/TranslationResponse" + - $ref: "#/components/schemas/SpeakerIdentificationResponse" + - $ref: "#/components/schemas/CustomFormattingResponse" + - $ref: "#/components/schemas/SummarizationResponse" + - $ref: "#/components/schemas/ActionItemsResponse" + status: x-label: Status - description: >- - The status of your transcript. Possible values are queued, - processing, completed, or error. - $ref: '#/components/schemas/TranscriptStatus' + description: The status of your transcript. Possible values are queued, processing, completed, or error. + $ref: "#/components/schemas/TranscriptStatus" + summarization: x-label: Summarization enabled - description: > - Whether - [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization) - is enabled, either true or false. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible summaries. See the [updated Summarization - page](https://www.assemblyai.com/docs/speech-understanding/summarization) - for details. - + description: | + Whether [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization) is enabled, either true or false. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details. Note: This parameter is only supported for the Universal-2 model. type: boolean deprecated: true + summary: x-label: Summary - description: >- - The generated summary of the media file, if - [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization) - is enabled. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible summaries. See the [updated Summarization - page](https://www.assemblyai.com/docs/speech-understanding/summarization) - for details. - type: - - string - - 'null' + description: The generated summary of the media file, if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization) is enabled. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details. + type: [string, "null"] deprecated: true + summary_model: x-label: Summary model - description: > + description: | The Summarization model used to generate the summary, - - if - [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization) - is enabled. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible summaries. See the [updated Summarization - page](https://www.assemblyai.com/docs/speech-understanding/summarization) - for details. - type: - - string - - 'null' + if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization) is enabled. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details. + type: [string, "null"] deprecated: true + summary_type: x-label: Summary type - description: >- - The type of summary generated, if - [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization) - is enabled. Deprecated - use [LLM - Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) - instead for more flexible summaries. See the [updated Summarization - page](https://www.assemblyai.com/docs/speech-understanding/summarization) - for details. - type: - - string - - 'null' + description: The type of summary generated, if [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization) is enabled. Deprecated - use [LLM Gateway](https://www.assemblyai.com/docs/llm-gateway/quickstart) instead for more flexible summaries. See the [updated Summarization page](https://www.assemblyai.com/docs/speech-understanding/summarization) for details. + type: [string, "null"] deprecated: true + remove_audio_tags: x-label: Remove audio tags - description: > - Universal-3.5 Pro generates rich transcripts that can include inline - annotations such as audio event markers and speaker cues. Set to - `"all"` to remove all inline annotations, or `"speaker"` to remove - only speaker cues while keeping other annotations. + description: | + Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. By default, all inline annotations are removed. - - Note: This parameter is only supported for the Universal-3.5 Pro - model. + Note: This parameter is only supported for the Universal-3.5 Pro model. oneOf: - type: string enum: - all - speaker - - type: 'null' + - type: "null" + temperature: x-label: Temperature - description: > - The temperature that was used for the model's response. See the - [Prompting - Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) - for more details. + description: | + The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details. + Note: This parameter only takes effect on the Universal-3.5 Pro model. + type: [number, "null"] + minimum: 0.0 + maximum: 1.0 - Note: This parameter can only be used with the Universal-3.5 Pro - model. - type: - - number - - 'null' - minimum: 0 - maximum: 1 text: x-label: Text description: The textual transcript of your media file - type: - - string - - 'null' + type: [string, "null"] + unredacted_text: x-label: Unredacted text - description: > - The original textual transcript of your media file before PII - redaction was applied. Only returned when - `redact_pii_return_unredacted` was set to `true` on the - transcription request, otherwise this field is omitted and the - `text` field remains fully redacted. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction) for more - information. - type: - - string - - 'null' + description: | + The original textual transcript of your media file before PII redaction was applied. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `text` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. + type: [string, "null"] + throttled: x-label: Throttled - description: >- - True while a request is throttled and false when a request is no - longer throttled - type: - - boolean - - 'null' + description: True while a request is throttled and false when a request is no longer throttled + type: [boolean, "null"] + utterances: x-label: Utterances - description: > - When multichannel or speaker_labels is enabled, a list of - turn-by-turn utterance objects. - - See [Speaker - diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) - and [Multichannel - transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) - for more information. - type: - - array - - 'null' + description: | + When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects. + See [Speaker diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) and [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) for more information. + type: [array, "null"] items: x-label: Utterance - $ref: '#/components/schemas/TranscriptUtterance' + $ref: "#/components/schemas/TranscriptUtterance" + unredacted_utterances: x-label: Unredacted utterances - description: > - The original turn-by-turn utterance objects before PII redaction was - applied. Same shape as `utterances`. Only returned when - `redact_pii_return_unredacted` was set to `true` on the - transcription request, otherwise this field is omitted and the - `utterances` field remains fully redacted. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction) for more - information. - type: - - array - - 'null' + description: | + The original turn-by-turn utterance objects before PII redaction was applied. Same shape as `utterances`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `utterances` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. + type: [array, "null"] items: x-label: Utterance - $ref: '#/components/schemas/TranscriptUtterance' + $ref: "#/components/schemas/TranscriptUtterance" + webhook_auth: x-label: Webhook auth enabled - description: >- - Whether - [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) - authentication details were provided + description: Whether [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) authentication details were provided type: boolean + webhook_auth_header_name: x-label: Webhook auth header name - description: >- - The header name to be sent with the transcript completed or failed - [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) - requests - type: - - string - - 'null' + description: The header name to be sent with the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. Must be 1-1000 characters and contain only ASCII letters, numbers, hyphens, and underscores. Requires `webhook_auth_header_value` and `webhook_url` to also be set. + type: [string, "null"] + webhook_status_code: x-label: Webhook HTTP status code - description: >- - The status code we received from your server when delivering the - transcript completed or failed - [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) - request, if a webhook URL was provided - type: - - integer - - 'null' + description: The status code we received from your server when delivering the transcript completed or failed [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) request, if a webhook URL was provided + type: [integer, "null"] + webhook_url: x-label: Webhook URL - description: > - The URL to which we send - [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) - requests. - type: - - string - - 'null' + description: | + The URL to which we send [webhook](https://www.assemblyai.com/docs/deployment/webhooks-for-pre-recorded-audio) requests. + type: [string, "null"] format: url + words: x-label: Words - description: > - An array of temporally-sequential word objects, one for each word in - the transcript. - type: - - array - - 'null' + description: | + An array of temporally-sequential word objects, one for each word in the transcript. + type: [array, "null"] items: x-label: Word - $ref: '#/components/schemas/TranscriptWord' + $ref: "#/components/schemas/TranscriptWord" + unredacted_words: x-label: Unredacted words - description: > - The original temporally-sequential word objects before PII redaction - was applied. Same shape as `words`. Only returned when - `redact_pii_return_unredacted` was set to `true` on the - transcription request, otherwise this field is omitted and the - `words` field remains fully redacted. See [PII - redaction](https://www.assemblyai.com/docs/pii-redaction) for more - information. - type: - - array - - 'null' + description: | + The original temporally-sequential word objects before PII redaction was applied. Same shape as `words`. Only returned when `redact_pii_return_unredacted` was set to `true` on the transcription request, otherwise this field is omitted and the `words` field remains fully redacted. See [PII redaction](https://www.assemblyai.com/docs/pii-redaction) for more information. + type: [array, "null"] items: x-label: Word - $ref: '#/components/schemas/TranscriptWord' + $ref: "#/components/schemas/TranscriptWord" + acoustic_model: x-label: Acoustic model - description: >- - This parameter does not currently have any functionality attached to - it. + description: This parameter does not currently have any functionality attached to it. type: string deprecated: true + custom_topics: x-label: Custom topics enabled - description: >- - This parameter does not currently have any functionality attached to - it. - type: - - boolean - - 'null' + description: This parameter does not currently have any functionality attached to it. + type: [boolean, "null"] deprecated: true + language_model: x-label: Language model - description: >- - This parameter does not currently have any functionality attached to - it. + description: This parameter does not currently have any functionality attached to it. type: string deprecated: true + speech_model: x-label: Speech model - description: > - This parameter has been replaced with the `speech_models` parameter, - learn more about the `speech_models` parameter - [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). + description: | + This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). oneOf: - - $ref: '#/components/schemas/SpeechModel' - - type: 'null' - deprecated: true + - $ref: "#/components/schemas/SpeechModel" + - type: "null" + deprecated: True + speed_boost: x-label: Speed boost - description: >- - This parameter does not currently have any functionality attached to - it. - type: - - boolean - - 'null' + description: This parameter does not currently have any functionality attached to it. + type: [boolean, "null"] deprecated: true + topics: x-label: Topics - description: >- - This parameter does not currently have any functionality attached to - it. + description: This parameter does not currently have any functionality attached to it. type: array items: x-label: Topic type: string deprecated: true + translated_texts: + # x-label: Translated text type: object - description: >- - Translated text keyed by language code. See - [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) - for more details. + description: Translated text keyed by language code. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details. properties: language_code: x-label: Language code type: string description: Translated text for this language code + required: - id - speech_model @@ -3597,552 +3023,604 @@ components: - language_confidence_threshold - language_confidence example: - id: 9ea68fd3-f953-42c1-9742-976c447fb463 - speech_model: null - language_model: assemblyai_default - acoustic_model: assemblyai_default - language_code: en_us - language_detection: true - language_confidence_threshold: 0.7 - language_confidence: 0.9959 - status: completed - audio_url: https://assembly.ai/wildfires.mp3 - text: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts throughout the US. Skylines from Maine to Maryland to Minnesota - are gray and smoggy. And in some places, the air quality warnings - include the warning to stay inside. We wanted to better understand - what's happening here and why, so we called Peter de Carlo, an - associate professor in the Department of Environmental Health and - Engineering at Johns Hopkins University Varsity. Good morning, - professor. Good morning. What is it about the conditions right now - that have caused this round of wildfires to affect so many people so - far away? Well, there's a couple of things. The season has been pretty - dry already. And then the fact that we're getting hit in the US. Is - because there's a couple of weather systems that are essentially - channeling the smoke from those Canadian wildfires through - Pennsylvania into the Mid Atlantic and the Northeast and kind of just - dropping the smoke there. So what is it in this haze that makes it - harmful? And I'm assuming it is harmful. It is. The levels outside - right now in Baltimore are considered unhealthy. And most of that is - due to what's called particulate matter, which are tiny particles, - microscopic smaller than the width of your hair that can get into your - lungs and impact your respiratory system, your cardiovascular system, - and even your neurological your brain. What makes this particularly - harmful? Is it the volume of particulant? Is it something in - particular? What is it exactly? Can you just drill down on that a - little bit more? Yeah. So the concentration of particulate matter I - was looking at some of the monitors that we have was reaching levels - of what are, in science, big 150 micrograms per meter cubed, which is - more than ten times what the annual average should be and about four - times higher than what you're supposed to have on a 24 hours average. - And so the concentrations of these particles in the air are just much, - much higher than we typically see. And exposure to those high levels - can lead to a host of health problems. And who is most vulnerable? I - noticed that in New York City, for example, they're canceling outdoor - activities. And so here it is in the early days of summer, and they - have to keep all the kids inside. So who tends to be vulnerable in a - situation like this? It's the youngest. So children, obviously, whose - bodies are still developing. The elderly, who are their bodies are - more in decline and they're more susceptible to the health impacts of - breathing, the poor air quality. And then people who have preexisting - health conditions, people with respiratory conditions or heart - conditions can be triggered by high levels of air pollution. Could - this get worse? That's a good question. In some areas, it's much worse - than others. And it just depends on kind of where the smoke is - concentrated. I think New York has some of the higher concentrations - right now, but that's going to change as that air moves away from the - New York area. But over the course of the next few days, we will see - different areas being hit at different times with the highest - concentrations. I was going to ask you about more fires start burning. - I don't expect the concentrations to go up too much higher. I was - going to ask you how and you started to answer this, but how much - longer could this last? Or forgive me if I'm asking you to speculate, - but what do you think? Well, I think the fires are going to burn for a - little bit longer, but the key for us in the US. Is the weather system - changing. And so right now, it's kind of the weather systems that are - pulling that air into our mid Atlantic and Northeast region. As those - weather systems change and shift, we'll see that smoke going elsewhere - and not impact us in this region as much. And so I think that's going - to be the defining factor. And I think the next couple of days we're - going to see a shift in that weather pattern and start to push the - smoke away from where we are. And finally, with the impacts of climate - change, we are seeing more wildfires. Will we be seeing more of these - kinds of wide ranging air quality consequences or circumstances? I - mean, that is one of the predictions for climate change. Looking into - the future, the fire season is starting earlier and lasting longer, - and we're seeing more frequent fires. So, yeah, this is probably - something that we'll be seeing more frequently. This tends to be much - more of an issue in the Western US. So the eastern US. Getting hit - right now is a little bit new. But yeah, I think with climate change - moving forward, this is something that is going to happen more - frequently. That's Peter De Carlo, associate professor in the - Department of Environmental Health and Engineering at Johns Hopkins - University. Sergeant Carlo, thanks so much for joining us and sharing - this expertise with us. Thank you for having me. - words: - - text: Smoke - start: 250 - end: 650 - confidence: 0.97465 - speaker: null - - text: from - start: 730 - end: 1022 - confidence: 0.99999 - speaker: null - - text: hundreds - start: 1076 - end: 1418 - confidence: 0.99844 - speaker: null - - text: of - start: 1434 - end: 1614 - confidence: 0.84 - speaker: null - - text: wildfires - start: 1652 - end: 2346 - confidence: 0.89572 - speaker: null - - text: in - start: 2378 - end: 2526 - confidence: 0.99994 - speaker: null - - text: Canada - start: 2548 - end: 3130 - confidence: 0.93953 - speaker: null - - text: is - start: 3210 - end: 3454 - confidence: 0.999 - speaker: null - - text: triggering - start: 3492 - end: 3946 - confidence: 0.74794 - speaker: null - - text: air - start: 3978 - end: 4174 - confidence: 1 - speaker: null - - text: quality - start: 4212 - end: 4558 - confidence: 0.88077 - speaker: null - - text: alerts - start: 4644 - end: 5114 - confidence: 0.94814 - speaker: null - - text: throughout - start: 5162 - end: 5466 - confidence: 0.99726 - speaker: null - - text: the - start: 5498 - end: 5694 - confidence: 0.79 - speaker: null - - text: US. - start: 5732 - end: 6382 - confidence: 0.89 - speaker: null - utterances: - - confidence: 0.9359033333333334 - end: 26950 - speaker: A - start: 250 - text: >- - Smoke from hundreds of wildfires in Canada is triggering air - quality alerts throughout the US. Skylines from Maine to Maryland - to Minnesota are gray and smoggy. And in some places, the air - quality warnings include the warning to stay inside. We wanted to - better understand what's happening here and why, so we called - Peter de Carlo, an associate professor in the Department of - Environmental Health and Engineering at Johns Hopkins University - Varsity. Good morning, professor. - words: - - text: Smoke - start: 250 - end: 650 - confidence: 0.97503 - speaker: A - - text: from - start: 730 - end: 1022 - confidence: 0.99999 - speaker: A - - text: hundreds - start: 1076 - end: 1418 - confidence: 0.99843 - speaker: A - - text: of - start: 1434 - end: 1614 - confidence: 0.85 - speaker: A - - text: wildfires - start: 1652 - end: 2346 - confidence: 0.89657 - speaker: A - - text: in - start: 2378 - end: 2526 - confidence: 0.99994 - speaker: A - - text: Canada - start: 2548 - end: 3130 - confidence: 0.93864 - speaker: A - - text: is - start: 3210 - end: 3454 - confidence: 0.999 - speaker: A - - text: triggering - start: 3492 - end: 3946 - confidence: 0.75366 - speaker: A - - text: air - start: 3978 - end: 4174 - confidence: 1 - speaker: A - - text: quality - start: 4212 - end: 4558 - confidence: 0.87745 - speaker: A - - text: alerts - start: 4644 - end: 5114 - confidence: 0.94739 - speaker: A - - text: throughout - start: 5162 - end: 5466 - confidence: 0.99726 - speaker: A - - text: the - start: 5498 - end: 5694 - confidence: 0.79 - speaker: A - - text: US. - start: 5732 - end: 6382 - confidence: 0.88 - speaker: A - confidence: 0.9404651451800253 - audio_duration: 281 - punctuate: true - format_text: true - multichannel: false - webhook_url: https://your-webhook-url.tld/path - webhook_status_code: 200 - webhook_auth: true - webhook_auth_header_name: webhook-secret - auto_highlights_result: - status: success - results: - - count: 1 - rank: 0.08 - text: air quality alerts - timestamps: - - start: 3978 - end: 5114 - - count: 1 - rank: 0.08 - text: wide ranging air quality consequences - timestamps: - - start: 235388 - end: 238694 - - count: 1 - rank: 0.07 - text: more wildfires - timestamps: - - start: 230972 - end: 232354 - - count: 1 - rank: 0.07 - text: air pollution - timestamps: - - start: 156004 - end: 156910 - - count: 3 - rank: 0.07 - text: weather systems - timestamps: - - start: 47344 - end: 47958 - - start: 205268 - end: 205818 - - start: 211588 - end: 213434 - - count: 2 - rank: 0.06 - text: high levels - timestamps: - - start: 121128 - end: 121646 - - start: 155412 - end: 155866 - - count: 1 - rank: 0.06 - text: health conditions - timestamps: - - start: 152138 - end: 152666 - - count: 2 - rank: 0.06 - text: Peter de Carlo - timestamps: - - start: 18948 - end: 19930 - - start: 268298 - end: 269194 - - count: 1 - rank: 0.06 - text: New York City - timestamps: - - start: 125768 - end: 126274 - - count: 1 - rank: 0.05 - text: respiratory conditions - timestamps: - - start: 152964 - end: 153786 - - count: 3 - rank: 0.05 - text: New York - timestamps: - - start: 125768 - end: 126034 - - start: 171448 - end: 171938 - - start: 176008 - end: 176322 - - count: 3 - rank: 0.05 - text: climate change - timestamps: - - start: 229548 - end: 230230 - - start: 244576 - end: 245162 - - start: 263348 - end: 263950 - - count: 1 - rank: 0.05 - text: Johns Hopkins University Varsity - timestamps: - - start: 23972 - end: 25490 - - count: 1 - rank: 0.05 - text: heart conditions - timestamps: - - start: 153988 - end: 154506 - - count: 1 - rank: 0.05 - text: air quality warnings - timestamps: - - start: 12308 - end: 13434 - auto_highlights: true - audio_start_from: 10 - audio_end_at: 280 - filter_profanity: true - redact_pii: true - redact_pii_audio: true - redact_pii_audio_quality: mp3 - redact_pii_policies: - - us_social_security_number - - credit_card_number - redact_pii_sub: hash - speaker_labels: true - content_safety: true - iab_categories: true - content_safety_labels: - status: success - results: - - text: >- - Smoke from hundreds of wildfires in Canada is triggering air - quality alerts throughout the US. Skylines from Maine to - Maryland to Minnesota are gray and smoggy. And in some places, - the air quality warnings include the warning to stay inside. We - wanted to better understand what's happening here and why, so we - called Peter de Carlo, an associate professor in the Department - of Environmental Health and Engineering at Johns Hopkins - University Varsity. Good morning, professor. Good morning. - labels: - - label: disasters - confidence: 0.8142836093902588 - severity: 0.4093044400215149 - sentences_idx_start: 0 - sentences_idx_end: 5 - timestamp: - start: 250 - end: 28840 - summary: - disasters: 0.9940800441842205 - health_issues: 0.9216489289040967 - severity_score_summary: - disasters: - low: 0.5733263024656846 - medium: 0.42667369753431533 - high: 0 - health_issues: - low: 0.22863814977924785 - medium: 0.45014154926938227 - high: 0.32122030095136983 - iab_categories_result: - status: success - results: - - text: >- - Smoke from hundreds of wildfires in Canada is triggering air - quality alerts throughout the US. Skylines from Maine to - Maryland to Minnesota are gray and smoggy. And in some places, - the air quality warnings include the warning to stay inside. We - wanted to better understand what's happening here and why, so we - called Peter de Carlo, an associate professor in the Department - of Environmental Health and Engineering at Johns Hopkins - University Varsity. Good morning, professor. Good morning. - labels: - - relevance: 0.988274097442627 - label: Home&Garden>IndoorEnvironmentalQuality - - relevance: 0.5821335911750793 - label: NewsAndPolitics>Weather - - relevance: 0.0042327106930315495 - label: MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth - - relevance: 0.0033971222583204508 - label: NewsAndPolitics>Disasters - - relevance: 0.002469958271831274 - label: BusinessAndFinance>Business>GreenSolutions - - relevance: 0.0014376690378412604 - label: MedicalHealth>DiseasesAndConditions>Cancer - - relevance: 0.0014294233405962586 - label: Science>Environment - - relevance: 0.001234519761055708 - label: Travel>TravelLocations>PolarTravel - - relevance: 0.0010231725173071027 - label: MedicalHealth>DiseasesAndConditions>ColdAndFlu - - relevance: 0.0007445293595083058 - label: BusinessAndFinance>Industries>PowerAndEnergyIndustry - timestamp: - start: 250 - end: 28840 - summary: - NewsAndPolitics>Weather: 1 - Home&Garden>IndoorEnvironmentalQuality: 0.9043831825256348 - Science>Environment: 0.16117265820503235 - BusinessAndFinance>Industries>EnvironmentalServicesIndustry: 0.14393523335456848 - MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth: 0.11401086300611496 - BusinessAndFinance>Business>GreenSolutions: 0.06348437070846558 - NewsAndPolitics>Disasters: 0.05041387677192688 - Travel>TravelLocations>PolarTravel: 0.01308488193899393 - HealthyLiving: 0.008222488686442375 - MedicalHealth>DiseasesAndConditions>ColdAndFlu: 0.0022315620444715023 - MedicalHealth>DiseasesAndConditions>HeartAndCardiovascularDiseases: 0.00213034451007843 - HealthyLiving>Wellness>SmokingCessation: 0.001540527562610805 - MedicalHealth>DiseasesAndConditions>Injuries: 0.0013950627762824297 - BusinessAndFinance>Industries>PowerAndEnergyIndustry: 0.0012570273829624057 - MedicalHealth>DiseasesAndConditions>Cancer: 0.001097781932912767 - MedicalHealth>DiseasesAndConditions>Allergies: 0.0010148967849090695 - MedicalHealth>DiseasesAndConditions>MentalHealth: 0.000717321818228811 - Style&Fashion>PersonalCare>DeodorantAndAntiperspirant: 0.0006022014422342181 - Technology&Computing>Computing>ComputerNetworking: 0.0005461975233629346 - MedicalHealth>DiseasesAndConditions>Injuries>FirstAid: 0.0004885646631009877 - custom_spelling: null - throttled: null - auto_chapters: false - summarization: false - summary_type: null - summary_model: null - custom_topics: true - topics: [] - speech_threshold: 0.5 - remove_audio_tags: null - domain: null - disfluencies: false - sentiment_analysis: true - sentiment_analysis_results: null - entity_detection: true - entities: - - entity_type: location - text: Canada - start: 2548 - end: 3130 - - entity_type: location - text: the US - start: 5498 - end: 6382 - - entity_type: location - text: Maine - start: 7492 - end: 7914 - - entity_type: location - text: Maryland - start: 8212 - end: 8634 - - entity_type: location - text: Minnesota - start: 8932 - end: 9578 - - entity_type: person_name - text: Peter de Carlo - start: 18948 - end: 19930 - - entity_type: occupation - text: associate professor - start: 20292 - end: 21194 - - entity_type: organization - text: Department of Environmental Health and Engineering - start: 21508 - end: 23706 - - entity_type: organization - text: Johns Hopkins University Varsity - start: 23972 - end: 25490 - - entity_type: occupation - text: professor - start: 26076 - end: 26950 - - entity_type: location - text: the US - start: 45184 - end: 45898 - - entity_type: nationality - text: Canadian - start: 49728 - end: 50086 - chapters: null - summary: null - speakers_expected: 2 + { + id: "9ea68fd3-f953-42c1-9742-976c447fb463", + speech_model: null, + language_model: "assemblyai_default", + acoustic_model: "assemblyai_default", + language_code: "en_us", + language_detection: true, + language_confidence_threshold: 0.7, + language_confidence: 0.9959, + status: "completed", + audio_url: "https://assembly.ai/wildfires.mp3", + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning. What is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there's a couple of things. The season has been pretty dry already. And then the fact that we're getting hit in the US. Is because there's a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there. So what is it in this haze that makes it harmful? And I'm assuming it is harmful. It is. The levels outside right now in Baltimore are considered unhealthy. And most of that is due to what's called particulate matter, which are tiny particles, microscopic smaller than the width of your hair that can get into your lungs and impact your respiratory system, your cardiovascular system, and even your neurological your brain. What makes this particularly harmful? Is it the volume of particulant? Is it something in particular? What is it exactly? Can you just drill down on that a little bit more? Yeah. So the concentration of particulate matter I was looking at some of the monitors that we have was reaching levels of what are, in science, big 150 micrograms per meter cubed, which is more than ten times what the annual average should be and about four times higher than what you're supposed to have on a 24 hours average. And so the concentrations of these particles in the air are just much, much higher than we typically see. And exposure to those high levels can lead to a host of health problems. And who is most vulnerable? I noticed that in New York City, for example, they're canceling outdoor activities. And so here it is in the early days of summer, and they have to keep all the kids inside. So who tends to be vulnerable in a situation like this? It's the youngest. So children, obviously, whose bodies are still developing. The elderly, who are their bodies are more in decline and they're more susceptible to the health impacts of breathing, the poor air quality. And then people who have preexisting health conditions, people with respiratory conditions or heart conditions can be triggered by high levels of air pollution. Could this get worse? That's a good question. In some areas, it's much worse than others. And it just depends on kind of where the smoke is concentrated. I think New York has some of the higher concentrations right now, but that's going to change as that air moves away from the New York area. But over the course of the next few days, we will see different areas being hit at different times with the highest concentrations. I was going to ask you about more fires start burning. I don't expect the concentrations to go up too much higher. I was going to ask you how and you started to answer this, but how much longer could this last? Or forgive me if I'm asking you to speculate, but what do you think? Well, I think the fires are going to burn for a little bit longer, but the key for us in the US. Is the weather system changing. And so right now, it's kind of the weather systems that are pulling that air into our mid Atlantic and Northeast region. As those weather systems change and shift, we'll see that smoke going elsewhere and not impact us in this region as much. And so I think that's going to be the defining factor. And I think the next couple of days we're going to see a shift in that weather pattern and start to push the smoke away from where we are. And finally, with the impacts of climate change, we are seeing more wildfires. Will we be seeing more of these kinds of wide ranging air quality consequences or circumstances? I mean, that is one of the predictions for climate change. Looking into the future, the fire season is starting earlier and lasting longer, and we're seeing more frequent fires. So, yeah, this is probably something that we'll be seeing more frequently. This tends to be much more of an issue in the Western US. So the eastern US. Getting hit right now is a little bit new. But yeah, I think with climate change moving forward, this is something that is going to happen more frequently. That's Peter De Carlo, associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Sergeant Carlo, thanks so much for joining us and sharing this expertise with us. Thank you for having me.", + words: + [ + { + text: "Smoke", + start: 250, + end: 650, + confidence: 0.97465, + speaker: null, + }, + { + text: "from", + start: 730, + end: 1022, + confidence: 0.99999, + speaker: null, + }, + { + text: "hundreds", + start: 1076, + end: 1418, + confidence: 0.99844, + speaker: null, + }, + { + text: "of", + start: 1434, + end: 1614, + confidence: 0.84, + speaker: null, + }, + { + text: "wildfires", + start: 1652, + end: 2346, + confidence: 0.89572, + speaker: null, + }, + { + text: "in", + start: 2378, + end: 2526, + confidence: 0.99994, + speaker: null, + }, + { + text: "Canada", + start: 2548, + end: 3130, + confidence: 0.93953, + speaker: null, + }, + { + text: "is", + start: 3210, + end: 3454, + confidence: 0.999, + speaker: null, + }, + { + text: "triggering", + start: 3492, + end: 3946, + confidence: 0.74794, + speaker: null, + }, + { + text: "air", + start: 3978, + end: 4174, + confidence: 1.0, + speaker: null, + }, + { + text: "quality", + start: 4212, + end: 4558, + confidence: 0.88077, + speaker: null, + }, + { + text: "alerts", + start: 4644, + end: 5114, + confidence: 0.94814, + speaker: null, + }, + { + text: "throughout", + start: 5162, + end: 5466, + confidence: 0.99726, + speaker: null, + }, + { + text: "the", + start: 5498, + end: 5694, + confidence: 0.79, + speaker: null, + }, + { + text: "US.", + start: 5732, + end: 6382, + confidence: 0.89, + speaker: null, + }, + ], + utterances: + [ + { + confidence: 0.9359033333333334, + end: 26950, + speaker: "A", + start: 250, + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor.", + words: + [ + { + text: "Smoke", + start: 250, + end: 650, + confidence: 0.97503, + speaker: "A", + }, + { + text: "from", + start: 730, + end: 1022, + confidence: 0.99999, + speaker: "A", + }, + { + text: "hundreds", + start: 1076, + end: 1418, + confidence: 0.99843, + speaker: "A", + }, + { + text: "of", + start: 1434, + end: 1614, + confidence: 0.85, + speaker: "A", + }, + { + text: "wildfires", + start: 1652, + end: 2346, + confidence: 0.89657, + speaker: "A", + }, + { + text: "in", + start: 2378, + end: 2526, + confidence: 0.99994, + speaker: "A", + }, + { + text: "Canada", + start: 2548, + end: 3130, + confidence: 0.93864, + speaker: "A", + }, + { + text: "is", + start: 3210, + end: 3454, + confidence: 0.999, + speaker: "A", + }, + { + text: "triggering", + start: 3492, + end: 3946, + confidence: 0.75366, + speaker: "A", + }, + { + text: "air", + start: 3978, + end: 4174, + confidence: 1.0, + speaker: "A", + }, + { + text: "quality", + start: 4212, + end: 4558, + confidence: 0.87745, + speaker: "A", + }, + { + text: "alerts", + start: 4644, + end: 5114, + confidence: 0.94739, + speaker: "A", + }, + { + text: "throughout", + start: 5162, + end: 5466, + confidence: 0.99726, + speaker: "A", + }, + { + text: "the", + start: 5498, + end: 5694, + confidence: 0.79, + speaker: "A", + }, + { + text: "US.", + start: 5732, + end: 6382, + confidence: 0.88, + speaker: "A", + }, + ], + }, + ], + confidence: 0.9404651451800253, + audio_duration: 281, + punctuate: true, + format_text: true, + multichannel: false, + webhook_url: "https://your-webhook-url.tld/path", + webhook_status_code: 200, + webhook_auth: true, + webhook_auth_header_name: "webhook-secret", + auto_highlights_result: + { + status: "success", + results: + [ + { + count: 1, + rank: 0.08, + text: "air quality alerts", + timestamps: [{ start: 3978, end: 5114 }], + }, + { + count: 1, + rank: 0.08, + text: "wide ranging air quality consequences", + timestamps: [{ start: 235388, end: 238694 }], + }, + { + count: 1, + rank: 0.07, + text: "more wildfires", + timestamps: [{ start: 230972, end: 232354 }], + }, + { + count: 1, + rank: 0.07, + text: "air pollution", + timestamps: [{ start: 156004, end: 156910 }], + }, + { + count: 3, + rank: 0.07, + text: "weather systems", + timestamps: + [ + { start: 47344, end: 47958 }, + { start: 205268, end: 205818 }, + { start: 211588, end: 213434 }, + ], + }, + { + count: 2, + rank: 0.06, + text: "high levels", + timestamps: + [ + { start: 121128, end: 121646 }, + { start: 155412, end: 155866 }, + ], + }, + { + count: 1, + rank: 0.06, + text: "health conditions", + timestamps: [{ start: 152138, end: 152666 }], + }, + { + count: 2, + rank: 0.06, + text: "Peter de Carlo", + timestamps: + [ + { start: 18948, end: 19930 }, + { start: 268298, end: 269194 }, + ], + }, + { + count: 1, + rank: 0.06, + text: "New York City", + timestamps: [{ start: 125768, end: 126274 }], + }, + { + count: 1, + rank: 0.05, + text: "respiratory conditions", + timestamps: [{ start: 152964, end: 153786 }], + }, + { + count: 3, + rank: 0.05, + text: "New York", + timestamps: + [ + { start: 125768, end: 126034 }, + { start: 171448, end: 171938 }, + { start: 176008, end: 176322 }, + ], + }, + { + count: 3, + rank: 0.05, + text: "climate change", + timestamps: + [ + { start: 229548, end: 230230 }, + { start: 244576, end: 245162 }, + { start: 263348, end: 263950 }, + ], + }, + { + count: 1, + rank: 0.05, + text: "Johns Hopkins University Varsity", + timestamps: [{ start: 23972, end: 25490 }], + }, + { + count: 1, + rank: 0.05, + text: "heart conditions", + timestamps: [{ start: 153988, end: 154506 }], + }, + { + count: 1, + rank: 0.05, + text: "air quality warnings", + timestamps: [{ start: 12308, end: 13434 }], + }, + ], + }, + auto_highlights: true, + audio_start_from: 10, + audio_end_at: 280, + filter_profanity: true, + redact_pii: true, + redact_pii_audio: true, + redact_pii_audio_quality: "mp3", + redact_pii_policies: + ["us_social_security_number", "credit_card_number"], + redact_pii_sub: "hash", + speaker_labels: true, + content_safety: true, + iab_categories: true, + content_safety_labels: + { + status: "success", + results: + [ + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.", + labels: + [ + { + label: "disasters", + confidence: 0.8142836093902588, + severity: 0.4093044400215149, + }, + ], + sentences_idx_start: 0, + sentences_idx_end: 5, + timestamp: { start: 250, end: 28840 }, + }, + ], + summary: + { + disasters: 0.9940800441842205, + health_issues: 0.9216489289040967, + }, + severity_score_summary: + { + disasters: + { + low: 0.5733263024656846, + medium: 0.42667369753431533, + high: 0.0, + }, + health_issues: + { + low: 0.22863814977924785, + medium: 0.45014154926938227, + high: 0.32122030095136983, + }, + }, + }, + iab_categories_result: + { + status: "success", + results: + [ + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.", + labels: + [ + { + relevance: 0.988274097442627, + label: "Home&Garden>IndoorEnvironmentalQuality", + }, + { + relevance: 0.5821335911750793, + label: "NewsAndPolitics>Weather", + }, + { + relevance: 0.0042327106930315495, + label: "MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth", + }, + { + relevance: 0.0033971222583204508, + label: "NewsAndPolitics>Disasters", + }, + { + relevance: 0.002469958271831274, + label: "BusinessAndFinance>Business>GreenSolutions", + }, + { + relevance: 0.0014376690378412604, + label: "MedicalHealth>DiseasesAndConditions>Cancer", + }, + { + relevance: 0.0014294233405962586, + label: "Science>Environment", + }, + { + relevance: 0.001234519761055708, + label: "Travel>TravelLocations>PolarTravel", + }, + { + relevance: 0.0010231725173071027, + label: "MedicalHealth>DiseasesAndConditions>ColdAndFlu", + }, + { + relevance: 0.0007445293595083058, + label: "BusinessAndFinance>Industries>PowerAndEnergyIndustry", + }, + ], + timestamp: { start: 250, end: 28840 }, + }, + ], + summary: + { + "NewsAndPolitics>Weather": 1.0, + "Home&Garden>IndoorEnvironmentalQuality": 0.9043831825256348, + "Science>Environment": 0.16117265820503235, + "BusinessAndFinance>Industries>EnvironmentalServicesIndustry": 0.14393523335456848, + "MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth": 0.11401086300611496, + "BusinessAndFinance>Business>GreenSolutions": 0.06348437070846558, + "NewsAndPolitics>Disasters": 0.05041387677192688, + "Travel>TravelLocations>PolarTravel": 0.01308488193899393, + HealthyLiving: 0.008222488686442375, + "MedicalHealth>DiseasesAndConditions>ColdAndFlu": 0.0022315620444715023, + "MedicalHealth>DiseasesAndConditions>HeartAndCardiovascularDiseases": 0.00213034451007843, + "HealthyLiving>Wellness>SmokingCessation": 0.001540527562610805, + "MedicalHealth>DiseasesAndConditions>Injuries": 0.0013950627762824297, + "BusinessAndFinance>Industries>PowerAndEnergyIndustry": 0.0012570273829624057, + "MedicalHealth>DiseasesAndConditions>Cancer": 0.001097781932912767, + "MedicalHealth>DiseasesAndConditions>Allergies": 0.0010148967849090695, + "MedicalHealth>DiseasesAndConditions>MentalHealth": 0.000717321818228811, + "Style&Fashion>PersonalCare>DeodorantAndAntiperspirant": 0.0006022014422342181, + "Technology&Computing>Computing>ComputerNetworking": 0.0005461975233629346, + "MedicalHealth>DiseasesAndConditions>Injuries>FirstAid": 0.0004885646631009877, + }, + }, + custom_spelling: null, + throttled: null, + auto_chapters: false, + summarization: false, + summary_type: null, + summary_model: null, + custom_topics: true, + topics: [], + speech_threshold: 0.5, + remove_audio_tags: null, + domain: null, + disfluencies: false, + sentiment_analysis: true, + sentiment_analysis_results: null, + entity_detection: true, + entities: + [ + { + entity_type: "location", + text: "Canada", + start: 2548, + end: 3130, + }, + { + entity_type: "location", + text: "the US", + start: 5498, + end: 6382, + }, + { + entity_type: "location", + text: "Maine", + start: 7492, + end: 7914, + }, + { + entity_type: "location", + text: "Maryland", + start: 8212, + end: 8634, + }, + { + entity_type: "location", + text: "Minnesota", + start: 8932, + end: 9578, + }, + { + entity_type: "person_name", + text: "Peter de Carlo", + start: 18948, + end: 19930, + }, + { + entity_type: "occupation", + text: "associate professor", + start: 20292, + end: 21194, + }, + { + entity_type: "organization", + text: "Department of Environmental Health and Engineering", + start: 21508, + end: 23706, + }, + { + entity_type: "organization", + text: "Johns Hopkins University Varsity", + start: 23972, + end: 25490, + }, + { + entity_type: "occupation", + text: "professor", + start: 26076, + end: 26950, + }, + { + entity_type: "location", + text: "the US", + start: 45184, + end: 45898, + }, + { + entity_type: "nationality", + text: "Canadian", + start: 49728, + end: 50086, + }, + ], + chapters: null, + summary: null, + speakers_expected: 2, + } + TopicDetectionModelResult: x-label: Topic Detection result - description: > + description: | The result of the Topic Detection model, if it is enabled. - - See [Topic - Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) - for more information. + See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) for more information. x-fern-sdk-group-name: transcripts type: object required: @@ -4152,17 +3630,15 @@ components: properties: status: x-label: Status - description: >- - The status of the Topic Detection model. Either success, or - unavailable in the rare case that the model failed. - $ref: '#/components/schemas/AudioIntelligenceModelStatus' + description: The status of the Topic Detection model. Either success, or unavailable in the rare case that the model failed. + $ref: "#/components/schemas/AudioIntelligenceModelStatus" results: x-label: Results description: An array of results for the Topic Detection model type: array items: x-label: Topic Detection result - $ref: '#/components/schemas/TopicDetectionResult' + $ref: "#/components/schemas/TopicDetectionResult" summary: x-label: Summary description: The overall relevance of topic to the entire audio file @@ -4173,70 +3649,88 @@ components: minimum: 0 maximum: 1 example: - status: success - results: - - text: >- - Smoke from hundreds of wildfires in Canada is triggering air - quality alerts throughout the US. Skylines from Maine to Maryland - to Minnesota are gray and smoggy. And in some places, the air - quality warnings include the warning to stay inside. We wanted to - better understand what's happening here and why, so we called - Peter de Carlo, an associate professor in the Department of - Environmental Health and Engineering at Johns Hopkins University - Varsity. Good morning, professor. Good morning. - labels: - - relevance: 0.988274097442627 - label: Home&Garden>IndoorEnvironmentalQuality - - relevance: 0.5821335911750793 - label: NewsAndPolitics>Weather - - relevance: 0.0042327106930315495 - label: MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth - - relevance: 0.0033971222583204508 - label: NewsAndPolitics>Disasters - - relevance: 0.002469958271831274 - label: BusinessAndFinance>Business>GreenSolutions - - relevance: 0.0014376690378412604 - label: MedicalHealth>DiseasesAndConditions>Cancer - - relevance: 0.0014294233405962586 - label: Science>Environment - - relevance: 0.001234519761055708 - label: Travel>TravelLocations>PolarTravel - - relevance: 0.0010231725173071027 - label: MedicalHealth>DiseasesAndConditions>ColdAndFlu - - relevance: 0.0007445293595083058 - label: BusinessAndFinance>Industries>PowerAndEnergyIndustry - timestamp: - start: 250 - end: 28840 - summary: - NewsAndPolitics>Weather: 1 - Home&Garden>IndoorEnvironmentalQuality: 0.9043831825256348 - Science>Environment: 0.16117265820503235 - BusinessAndFinance>Industries>EnvironmentalServicesIndustry: 0.14393523335456848 - MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth: 0.11401086300611496 - BusinessAndFinance>Business>GreenSolutions: 0.06348437070846558 - NewsAndPolitics>Disasters: 0.05041387677192688 - Travel>TravelLocations>PolarTravel: 0.01308488193899393 - HealthyLiving: 0.008222488686442375 - MedicalHealth>DiseasesAndConditions>ColdAndFlu: 0.0022315620444715023 - MedicalHealth>DiseasesAndConditions>HeartAndCardiovascularDiseases: 0.00213034451007843 - HealthyLiving>Wellness>SmokingCessation: 0.001540527562610805 - MedicalHealth>DiseasesAndConditions>Injuries: 0.0013950627762824297 - BusinessAndFinance>Industries>PowerAndEnergyIndustry: 0.0012570273829624057 - MedicalHealth>DiseasesAndConditions>Cancer: 0.001097781932912767 - MedicalHealth>DiseasesAndConditions>Allergies: 0.0010148967849090695 - MedicalHealth>DiseasesAndConditions>MentalHealth: 0.000717321818228811 - Style&Fashion>PersonalCare>DeodorantAndAntiperspirant: 0.0006022014422342181 - Technology&Computing>Computing>ComputerNetworking: 0.0005461975233629346 - MedicalHealth>DiseasesAndConditions>Injuries>FirstAid: 0.0004885646631009877 + { + status: "success", + results: + [ + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.", + labels: + [ + { + relevance: 0.988274097442627, + label: "Home&Garden>IndoorEnvironmentalQuality", + }, + { + relevance: 0.5821335911750793, + label: "NewsAndPolitics>Weather", + }, + { + relevance: 0.0042327106930315495, + label: "MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth", + }, + { + relevance: 0.0033971222583204508, + label: "NewsAndPolitics>Disasters", + }, + { + relevance: 0.002469958271831274, + label: "BusinessAndFinance>Business>GreenSolutions", + }, + { + relevance: 0.0014376690378412604, + label: "MedicalHealth>DiseasesAndConditions>Cancer", + }, + { + relevance: 0.0014294233405962586, + label: "Science>Environment", + }, + { + relevance: 0.001234519761055708, + label: "Travel>TravelLocations>PolarTravel", + }, + { + relevance: 0.0010231725173071027, + label: "MedicalHealth>DiseasesAndConditions>ColdAndFlu", + }, + { + relevance: 0.0007445293595083058, + label: "BusinessAndFinance>Industries>PowerAndEnergyIndustry", + }, + ], + timestamp: { start: 250, end: 28840 }, + }, + ], + summary: + { + "NewsAndPolitics>Weather": 1.0, + "Home&Garden>IndoorEnvironmentalQuality": 0.9043831825256348, + "Science>Environment": 0.16117265820503235, + "BusinessAndFinance>Industries>EnvironmentalServicesIndustry": 0.14393523335456848, + "MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth": 0.11401086300611496, + "BusinessAndFinance>Business>GreenSolutions": 0.06348437070846558, + "NewsAndPolitics>Disasters": 0.05041387677192688, + "Travel>TravelLocations>PolarTravel": 0.01308488193899393, + HealthyLiving: 0.008222488686442375, + "MedicalHealth>DiseasesAndConditions>ColdAndFlu": 0.0022315620444715023, + "MedicalHealth>DiseasesAndConditions>HeartAndCardiovascularDiseases": 0.00213034451007843, + "HealthyLiving>Wellness>SmokingCessation": 0.001540527562610805, + "MedicalHealth>DiseasesAndConditions>Injuries": 0.0013950627762824297, + "BusinessAndFinance>Industries>PowerAndEnergyIndustry": 0.0012570273829624057, + "MedicalHealth>DiseasesAndConditions>Cancer": 0.001097781932912767, + "MedicalHealth>DiseasesAndConditions>Allergies": 0.0010148967849090695, + "MedicalHealth>DiseasesAndConditions>MentalHealth": 0.000717321818228811, + "Style&Fashion>PersonalCare>DeodorantAndAntiperspirant": 0.0006022014422342181, + "Technology&Computing>Computing>ComputerNetworking": 0.0005461975233629346, + "MedicalHealth>DiseasesAndConditions>Injuries>FirstAid": 0.0004885646631009877, + }, + } + ContentSafetyLabelsResult: x-label: Content Moderation labels result - description: > + description: | An array of results for the Content Moderation model, if it is enabled. - - See [Content - moderation](https://www.assemblyai.com/docs/content-moderation) for more - information. + See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information. x-fern-sdk-group-name: transcripts type: object required: @@ -4247,72 +3741,73 @@ components: properties: status: x-label: Status - description: >- - The status of the Content Moderation model. Either success, or - unavailable in the rare case that the model failed. - $ref: '#/components/schemas/AudioIntelligenceModelStatus' + description: The status of the Content Moderation model. Either success, or unavailable in the rare case that the model failed. + $ref: "#/components/schemas/AudioIntelligenceModelStatus" results: x-label: Results description: An array of results for the Content Moderation model type: array items: x-label: Content Moderation label result - $ref: '#/components/schemas/ContentSafetyLabelResult' + $ref: "#/components/schemas/ContentSafetyLabelResult" summary: x-label: Summary - description: >- - A summary of the Content Moderation confidence results for the - entire audio file + description: A summary of the Content Moderation confidence results for the entire audio file type: object additionalProperties: - description: >- - A confidence score for the presence of the sensitive topic "topic" - across the entire audio file + description: A confidence score for the presence of the sensitive topic "topic" across the entire audio file type: number format: double minimum: 0 maximum: 1 severity_score_summary: x-label: Severity score summary - description: >- - A summary of the Content Moderation severity results for the entire - audio file + description: A summary of the Content Moderation severity results for the entire audio file type: object additionalProperties: - $ref: '#/components/schemas/SeverityScoreSummary' + $ref: "#/components/schemas/SeverityScoreSummary" example: - status: success - results: - - text: >- - Smoke from hundreds of wildfires in Canada is triggering air - quality alerts throughout the US. Skylines from Maine to Maryland - to Minnesota are gray and smoggy. And in some places, the air - quality warnings include the warning to stay inside. We wanted to - better understand what's happening here and why, so we called - Peter de Carlo, an associate professor in the Department of - Environmental Health and Engineering at Johns Hopkins University - Varsity. Good morning, professor. Good morning. - labels: - - label: disasters - confidence: 0.8142836093902588 - severity: 0.4093044400215149 - sentences_idx_start: 0 - sentences_idx_end: 5 - timestamp: - start: 250 - end: 28840 - summary: - disasters: 0.9940800441842205 - health_issues: 0.9216489289040967 - severity_score_summary: - disasters: - low: 0.5733263024656846 - medium: 0.42667369753431533 - high: 0 - health_issues: - low: 0.22863814977924785 - medium: 0.45014154926938227 - high: 0.32122030095136983 + { + status: "success", + results: + [ + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.", + labels: + [ + { + label: "disasters", + confidence: 0.8142836093902588, + severity: 0.4093044400215149, + }, + ], + sentences_idx_start: 0, + sentences_idx_end: 5, + timestamp: { start: 250, end: 28840 }, + }, + ], + summary: + { + disasters: 0.9940800441842205, + health_issues: 0.9216489289040967, + }, + severity_score_summary: + { + disasters: + { + low: 0.5733263024656846, + medium: 0.42667369753431533, + high: 0.0, + }, + health_issues: + { + low: 0.22863814977924785, + medium: 0.45014154926938227, + high: 0.32122030095136983, + }, + }, + } + Chapter: x-label: Chapter description: Chapter of the audio file @@ -4328,9 +3823,7 @@ components: properties: gist: x-label: Gist - description: >- - An ultra-short summary (just a few words) of the content spoken in - the chapter + description: An ultra-short summary (just a few words) of the content spoken in the chapter type: string headline: x-label: Headline @@ -4349,17 +3842,14 @@ components: description: The starting time, in milliseconds, for the chapter type: integer example: - summary: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts throughout the US. Skylines from Maine to Maryland to Minnesota - are gray and smoggy. In some places, the air quality warnings include - the warning to stay inside. - gist: Smoggy air quality alerts across US - headline: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts across US - start: 250 - end: 28840 + { + summary: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. In some places, the air quality warnings include the warning to stay inside.", + gist: "Smoggy air quality alerts across US", + headline: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts across US", + start: 250, + end: 28840, + } + Entity: x-label: Entity description: A detected entity @@ -4375,35 +3865,25 @@ components: entity_type: x-label: Entity type description: The type of entity for the detected entity - $ref: '#/components/schemas/EntityType' + $ref: "#/components/schemas/EntityType" text: x-label: Text description: The text for the detected entity type: string start: x-label: Start - description: >- - The starting time, in milliseconds, at which the detected entity - appears in the audio file + description: The starting time, in milliseconds, at which the detected entity appears in the audio file type: integer end: x-label: End - description: >- - The ending time, in milliseconds, for the detected entity in the - audio file + description: The ending time, in milliseconds, for the detected entity in the audio file type: integer example: - entity_type: location - text: Canada - start: 2548 - end: 3130 + { entity_type: "location", text: "Canada", start: 2548, end: 3130 } + EntityType: x-label: Entity type - description: >- - The type of entity for the detected entity. Entity Detection returns - every location reference under the single `location` value; granular - location subtypes (`location_address`, `location_city`, etc.) are - supported only by PII redaction. + description: The type of entity for the detected entity. Entity Detection returns every location reference under the single `location` value; granular location subtypes (`location_address`, `location_city`, etc.) are supported only by PII redaction. x-fern-sdk-group-name: transcripts type: string enum: @@ -4456,15 +3936,15 @@ components: - zodiac_sign x-fern-enum: account_number: - description: >- - Customer account or membership identification number (e.g., Policy - No. 10042992, Member ID: HZ-5235-001) + description: + "Customer account or membership identification number (e.g., Policy + No. 10042992, Member ID: HZ-5235-001)" banking_information: description: Banking information, including account and routing numbers blood_type: description: Blood type (e.g., O-, AB positive) credit_card_cvv: - description: 'Credit card verification code (e.g., CVV: 080)' + description: "Credit card verification code (e.g., CVV: 080)" credit_card_expiration: description: Expiration date of a credit card credit_card_number: @@ -4472,90 +3952,86 @@ components: date: description: Specific calendar date (e.g., December 18) date_interval: - description: >- + description: Broader time periods, including date ranges, months, seasons, years, and decades (e.g., 2020-2021, 5-9 May, January 1984) date_of_birth: - description: 'Date of birth (e.g., Date of Birth: March 7,1961)' + description: "Date of birth (e.g., Date of Birth: March 7,1961)" drivers_license: description: Driver's license number. (e.g., DL# 356933-540) drug: - description: >- + description: Medications, vitamins, or supplements (e.g., Advil, Acetaminophen, Panadol) duration: - description: >- - Measurements of time expressed as a numerical value plus a unit - (e.g., 8 months, 2 years) + description: + Measurements of time expressed as a numerical value plus a unit (e.g., + 8 months, 2 years) email_address: description: Email address (e.g., support@assemblyai.com) event: description: Name of an event or holiday (e.g., Olympics, Yom Kippur) filename: - description: >- + description: Names of computer files, including the extension or filepath (e.g., Taxes/2012/brad-tax-returns.pdf) gender: description: Terms indicating gender identity (e.g., female, male, non-binary) gender_sexuality: - description: >- + description: Terms indicating gender identity or sexual orientation, including slang terms (e.g., female, bisexual, trans) healthcare_number: - description: >- - Healthcare numbers and health plan beneficiary numbers (e.g., Policy - No.: 5584-486-674-YM) + description: + "Healthcare numbers and health plan beneficiary numbers (e.g., + Policy No.: 5584-486-674-YM)" injury: description: Bodily injury (e.g., I broke my arm, I have a sprained wrist) ip_address: - description: >- - Internet IP address, including IPv4 and IPv6 formats (e.g., - 192.168.0.1) + description: Internet IP address, including IPv4 and IPv6 formats (e.g., 192.168.0.1) language: description: Name of a natural language (e.g., Spanish, French) location: - description: >- - Any Location reference including mailing address, postal code, city, - state, province, country, or coordinates. (e.g., Lake Victoria, 145 + description: + Any Location reference including mailing address, postal code, + city, state, province, country, or coordinates. (e.g., Lake Victoria, 145 Windsor St., 90210) marital_status: - description: >- + description: Terms indicating marital status (e.g., Single, common-law, ex-wife, married) medical_condition: - description: >- + description: Name of a medical condition, disease, syndrome, deficit, or disorder (e.g., chronic fatigue syndrome, arrhythmia, depression) medical_process: - description: >- + description: Medical process, including treatments, procedures, and tests (e.g., heart surgery, CT scan) money_amount: description: Name and/or amount of currency (e.g., 15 pesos, $94.50) nationality: - description: >- + description: Terms indicating nationality, ethnicity, or race (e.g., American, Asian, Caucasian) number_sequence: - description: >- + description: Numerical PII (including alphanumeric strings) that doesn't fall under other categories occupation: description: Job title or profession (e.g., professor, actors, engineer, CPA) organization: - description: >- + description: Name of an organization (e.g., CNN, McDonalds, University of Alaska, Northwest General Hospital) organization_medical_facility: - description: >- + description: Name of a medical facility (e.g., Mayo Clinic, Northwest General Hospital) passport_number: - description: >- - Passport numbers, issued by any country (e.g., PA4568332, - NU3C6L86S12) + description: Passport numbers, issued by any country (e.g., PA4568332, NU3C6L86S12) password: - description: >- + description: Account passwords, PINs, access keys, or verification answers (e.g., 27%alfalfa, temp1234, My mother's maiden name is Smith) person_age: @@ -4565,19 +4041,16 @@ components: phone_number: description: Telephone or fax number physical_attribute: - description: >- - Distinctive bodily attributes, including race (e.g., I'm 190cm tall, - He belongs to the Black students' association) + description: Distinctive bodily attributes, including race + (e.g., I'm 190cm tall, He belongs to the Black students' association) political_affiliation: - description: >- + description: Terms referring to a political party, movement, or ideology (e.g., Republican, Liberal) religion: description: Terms indicating religious affiliation (e.g., Hindu, Catholic) sexuality: - description: >- - Terms indicating sexual orientation (e.g., heterosexual, bisexual, - gay) + description: Terms indicating sexual orientation (e.g., heterosexual, bisexual, gay) statistics: description: Medical statistics (e.g., 18%, 18 percent) time: @@ -4589,9 +4062,9 @@ components: username: description: Usernames, login names, or handles (e.g., @AssemblyAI) vehicle_id: - description: >- - Vehicle identification numbers (VINs), vehicle serial numbers, and - license plate numbers (e.g., 5FNRL38918B111818, BIF7547) + description: + Vehicle identification numbers (VINs), vehicle serial numbers, + and license plate numbers (e.g., 5FNRL38918B111818, BIF7547) zodiac_sign: description: Names of Zodiac signs (e.g., Aries, Taurus) x-aai-enum: @@ -4689,6 +4162,7 @@ components: label: Vehicle ID zodiac_sign: label: Zodiac sign + SentimentAnalysisResult: x-label: Sentiment Analysis result description: The result of the Sentiment Analysis model @@ -4717,46 +4191,33 @@ components: type: integer sentiment: x-label: Sentiment - description: >- - The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, - NEGATIVE - $ref: '#/components/schemas/Sentiment' + description: The detected sentiment for the sentence, one of POSITIVE, NEUTRAL, NEGATIVE + $ref: "#/components/schemas/Sentiment" confidence: x-label: Confidence - description: >- - The confidence score for the detected sentiment of the sentence, - from 0 to 1 + description: The confidence score for the detected sentiment of the sentence, from 0 to 1 type: number format: double minimum: 0 maximum: 1 channel: x-label: Channel - description: >- - The channel of this utterance. The left and right channels are - channels 1 and 2. Additional channels increment the channel number - sequentially. - type: - - string - - 'null' + description: The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + type: [string, "null"] speaker: x-label: Speaker - description: >- - The speaker of the sentence if [Speaker - Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) - is enabled, else null - type: - - string - - 'null' + description: The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null + type: [string, "null"] example: - text: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts throughout the US. - start: 250 - end: 6350 - sentiment: NEGATIVE - confidence: 0.8181032538414001 - speaker: null + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.", + start: 250, + end: 6350, + sentiment: "NEGATIVE", + confidence: 0.8181032538414001, + speaker: null, + } + Sentiment: x-label: Sentiment x-fern-sdk-group-name: transcripts @@ -4771,6 +4232,7 @@ components: label: Neutral NEGATIVE: label: Negative + TopicDetectionResult: x-label: Topic detection result description: The result of the topic detection model @@ -4805,47 +4267,60 @@ components: maximum: 1 label: x-label: Label - description: >- - The IAB taxonomical label for the label of the detected topic, - where > denotes supertopic/subtopic relationship + description: The IAB taxonomical label for the label of the detected topic, where > denotes supertopic/subtopic relationship type: string timestamp: x-label: Timestamp - $ref: '#/components/schemas/Timestamp' + $ref: "#/components/schemas/Timestamp" example: - text: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts throughout the US. Skylines from Maine to Maryland to Minnesota - are gray and smoggy. And in some places, the air quality warnings - include the warning to stay inside. We wanted to better understand - what's happening here and why, so we called Peter de Carlo, an - associate professor in the Department of Environmental Health and - Engineering at Johns Hopkins University Varsity. Good morning, - professor. Good morning. - labels: - - relevance: 0.988274097442627 - label: Home&Garden>IndoorEnvironmentalQuality - - relevance: 0.5821335911750793 - label: NewsAndPolitics>Weather - - relevance: 0.0042327106930315495 - label: MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth - - relevance: 0.0033971222583204508 - label: NewsAndPolitics>Disasters - - relevance: 0.002469958271831274 - label: BusinessAndFinance>Business>GreenSolutions - - relevance: 0.0014376690378412604 - label: MedicalHealth>DiseasesAndConditions>Cancer - - relevance: 0.0014294233405962586 - label: Science>Environment - - relevance: 0.001234519761055708 - label: Travel>TravelLocations>PolarTravel - - relevance: 0.0010231725173071027 - label: MedicalHealth>DiseasesAndConditions>ColdAndFlu - - relevance: 0.0007445293595083058 - label: BusinessAndFinance>Industries>PowerAndEnergyIndustry - timestamp: - start: 250 - end: 28840 + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.", + labels: + [ + { + relevance: 0.988274097442627, + label: "Home&Garden>IndoorEnvironmentalQuality", + }, + { + relevance: 0.5821335911750793, + label: "NewsAndPolitics>Weather", + }, + { + relevance: 0.0042327106930315495, + label: "MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth", + }, + { + relevance: 0.0033971222583204508, + label: "NewsAndPolitics>Disasters", + }, + { + relevance: 0.002469958271831274, + label: "BusinessAndFinance>Business>GreenSolutions", + }, + { + relevance: 0.0014376690378412604, + label: "MedicalHealth>DiseasesAndConditions>Cancer", + }, + { + relevance: 0.0014294233405962586, + label: "Science>Environment", + }, + { + relevance: 0.001234519761055708, + label: "Travel>TravelLocations>PolarTravel", + }, + { + relevance: 0.0010231725173071027, + label: "MedicalHealth>DiseasesAndConditions>ColdAndFlu", + }, + { + relevance: 0.0007445293595083058, + label: "BusinessAndFinance>Industries>PowerAndEnergyIndustry", + }, + ], + timestamp: { start: 250, end: 28840 }, + } + ContentSafetyLabel: x-label: Content Moderation label type: object @@ -4875,9 +4350,12 @@ components: minimum: 0 maximum: 1 example: - label: disasters - confidence: 0.8142836093902588 - severity: 0.4093044400215149 + { + label: "disasters", + confidence: 0.8142836093902588, + severity: 0.4093044400215149, + } + ContentSafetyLabelResult: x-label: Content Moderation label result type: object @@ -4892,19 +4370,15 @@ components: properties: text: x-label: Text - description: >- - The transcript of the section flagged by the Content Moderation - model + description: The transcript of the section flagged by the Content Moderation model type: string labels: x-label: Labels - description: >- - An array of safety labels, one per sensitive topic that was detected - in the section + description: An array of safety labels, one per sensitive topic that was detected in the section type: array items: x-label: Label - $ref: '#/components/schemas/ContentSafetyLabel' + $ref: "#/components/schemas/ContentSafetyLabel" sentences_idx_start: x-label: Sentence index start description: The sentence index at which the section begins @@ -4916,26 +4390,23 @@ components: timestamp: x-label: Timestamp description: Timestamp information for the section - $ref: '#/components/schemas/Timestamp' + $ref: "#/components/schemas/Timestamp" example: - text: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts throughout the US. Skylines from Maine to Maryland to Minnesota - are gray and smoggy. And in some places, the air quality warnings - include the warning to stay inside. We wanted to better understand - what's happening here and why, so we called Peter de Carlo, an - associate professor in the Department of Environmental Health and - Engineering at Johns Hopkins University Varsity. Good morning, - professor. Good morning. - labels: - - label: disasters - confidence: 0.8142836093902588 - severity: 0.4093044400215149 - sentences_idx_start: 0 - sentences_idx_end: 5 - timestamp: - start: 250 - end: 28840 + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.", + labels: + [ + { + label: "disasters", + confidence: 0.8142836093902588, + severity: 0.4093044400215149, + }, + ], + sentences_idx_start: 0, + sentences_idx_end: 5, + timestamp: { start: 250, end: 28840 }, + } + SeverityScoreSummary: x-label: Severity score summary type: object @@ -4964,17 +4435,13 @@ components: minimum: 0 maximum: 1 example: - low: 0.5733263024656846 - medium: 0.42667369753431533 - high: 0 + { low: 0.5733263024656846, medium: 0.42667369753431533, high: 0.0 } + AutoHighlightsResult: x-label: Auto highlights result - description: > + description: | An array of results for the Key Phrases model, if it is enabled. - - See [Key - phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) - for more information. + See [Key phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) for more information. x-fern-sdk-group-name: transcripts type: object required: @@ -4983,126 +4450,136 @@ components: properties: status: x-label: Status - description: >- - The status of the Key Phrases model. Either success, or unavailable - in the rare case that the model failed. - $ref: '#/components/schemas/AudioIntelligenceModelStatus' + description: The status of the Key Phrases model. Either success, or unavailable in the rare case that the model failed. + $ref: "#/components/schemas/AudioIntelligenceModelStatus" results: x-label: Results description: A temporally-sequential array of Key Phrases type: array items: x-label: Auto highlight result - $ref: '#/components/schemas/AutoHighlightResult' + $ref: "#/components/schemas/AutoHighlightResult" example: - status: success - results: - - count: 1 - rank: 0.08 - text: air quality alerts - timestamps: - - start: 3978 - end: 5114 - - count: 1 - rank: 0.08 - text: wide ranging air quality consequences - timestamps: - - start: 235388 - end: 238694 - - count: 1 - rank: 0.07 - text: more wildfires - timestamps: - - start: 230972 - end: 232354 - - count: 1 - rank: 0.07 - text: air pollution - timestamps: - - start: 156004 - end: 156910 - - count: 3 - rank: 0.07 - text: weather systems - timestamps: - - start: 47344 - end: 47958 - - start: 205268 - end: 205818 - - start: 211588 - end: 213434 - - count: 2 - rank: 0.06 - text: high levels - timestamps: - - start: 121128 - end: 121646 - - start: 155412 - end: 155866 - - count: 1 - rank: 0.06 - text: health conditions - timestamps: - - start: 152138 - end: 152666 - - count: 2 - rank: 0.06 - text: Peter de Carlo - timestamps: - - start: 18948 - end: 19930 - - start: 268298 - end: 269194 - - count: 1 - rank: 0.06 - text: New York City - timestamps: - - start: 125768 - end: 126274 - - count: 1 - rank: 0.05 - text: respiratory conditions - timestamps: - - start: 152964 - end: 153786 - - count: 3 - rank: 0.05 - text: New York - timestamps: - - start: 125768 - end: 126034 - - start: 171448 - end: 171938 - - start: 176008 - end: 176322 - - count: 3 - rank: 0.05 - text: climate change - timestamps: - - start: 229548 - end: 230230 - - start: 244576 - end: 245162 - - start: 263348 - end: 263950 - - count: 1 - rank: 0.05 - text: Johns Hopkins University Varsity - timestamps: - - start: 23972 - end: 25490 - - count: 1 - rank: 0.05 - text: heart conditions - timestamps: - - start: 153988 - end: 154506 - - count: 1 - rank: 0.05 - text: air quality warnings - timestamps: - - start: 12308 - end: 13434 + { + status: "success", + results: + [ + { + count: 1, + rank: 0.08, + text: "air quality alerts", + timestamps: [{ start: 3978, end: 5114 }], + }, + { + count: 1, + rank: 0.08, + text: "wide ranging air quality consequences", + timestamps: [{ start: 235388, end: 238694 }], + }, + { + count: 1, + rank: 0.07, + text: "more wildfires", + timestamps: [{ start: 230972, end: 232354 }], + }, + { + count: 1, + rank: 0.07, + text: "air pollution", + timestamps: [{ start: 156004, end: 156910 }], + }, + { + count: 3, + rank: 0.07, + text: "weather systems", + timestamps: + [ + { start: 47344, end: 47958 }, + { start: 205268, end: 205818 }, + { start: 211588, end: 213434 }, + ], + }, + { + count: 2, + rank: 0.06, + text: "high levels", + timestamps: + [ + { start: 121128, end: 121646 }, + { start: 155412, end: 155866 }, + ], + }, + { + count: 1, + rank: 0.06, + text: "health conditions", + timestamps: [{ start: 152138, end: 152666 }], + }, + { + count: 2, + rank: 0.06, + text: "Peter de Carlo", + timestamps: + [ + { start: 18948, end: 19930 }, + { start: 268298, end: 269194 }, + ], + }, + { + count: 1, + rank: 0.06, + text: "New York City", + timestamps: [{ start: 125768, end: 126274 }], + }, + { + count: 1, + rank: 0.05, + text: "respiratory conditions", + timestamps: [{ start: 152964, end: 153786 }], + }, + { + count: 3, + rank: 0.05, + text: "New York", + timestamps: + [ + { start: 125768, end: 126034 }, + { start: 171448, end: 171938 }, + { start: 176008, end: 176322 }, + ], + }, + { + count: 3, + rank: 0.05, + text: "climate change", + timestamps: + [ + { start: 229548, end: 230230 }, + { start: 244576, end: 245162 }, + { start: 263348, end: 263950 }, + ], + }, + { + count: 1, + rank: 0.05, + text: "Johns Hopkins University Varsity", + timestamps: [{ start: 23972, end: 25490 }], + }, + { + count: 1, + rank: 0.05, + text: "heart conditions", + timestamps: [{ start: 153988, end: 154506 }], + }, + { + count: 1, + rank: 0.05, + text: "air quality warnings", + timestamps: [{ start: 12308, end: 13434 }], + }, + ], + } + AutoHighlightResult: x-label: Auto highlight result type: object @@ -5120,9 +4597,7 @@ components: type: integer rank: x-label: Rank - description: >- - The total relevancy to the overall audio file of this key phrase - a - greater number means more relevant + description: The total relevancy to the overall audio file of this key phrase - a greater number means more relevant type: number format: float minimum: 0 @@ -5137,14 +4612,15 @@ components: type: array items: x-label: Timestamp - $ref: '#/components/schemas/Timestamp' + $ref: "#/components/schemas/Timestamp" example: - count: 1 - rank: 0.08 - text: air quality alerts - timestamps: - - start: 3978 - end: 5114 + { + count: 1, + rank: 0.08, + text: "air quality alerts", + timestamps: [{ start: 3978, end: 5114 }], + } + TranscriptWord: x-label: Word type: object @@ -5178,29 +4654,22 @@ components: type: string channel: x-label: Channel - description: >- - The channel of the word. The left and right channels are channels 1 - and 2. Additional channels increment the channel number - sequentially. - type: - - string - - 'null' + description: The channel of the word. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + type: [string, "null"] speaker: x-label: Speaker - description: >- - The speaker of the word if [Speaker - Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) - is enabled, else null - type: - - string - - 'null' + description: The speaker of the word if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null + type: [string, "null"] example: - text: Smoke - start: 250 - end: 650 - confidence: 0.97465 - channel: null - speaker: null + { + text: "Smoke", + start: 250, + end: 650, + confidence: 0.97465, + channel: null, + speaker: null, + } + TranscriptSentence: x-label: Sentence type: object @@ -5239,54 +4708,55 @@ components: type: array items: x-label: Word - $ref: '#/components/schemas/TranscriptWord' + $ref: "#/components/schemas/TranscriptWord" channel: x-label: Channel - description: >- - The channel of the sentence. The left and right channels are - channels 1 and 2. Additional channels increment the channel number - sequentially. - type: - - string - - 'null' + description: The channel of the sentence. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially. + type: [string, "null"] speaker: x-label: Speaker - description: >- - The speaker of the sentence if [Speaker - Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) - is enabled, else null - type: - - string - - 'null' + description: The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers) is enabled, else null + type: [string, "null"] example: - text: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts throughout the US. - start: 250 - end: 6350 - confidence: 0.72412 - words: - - text: Smoke - start: 250 - end: 650 - confidence: 0.72412 - speaker: null - - text: from - start: 730 - end: 1022 - confidence: 0.99996 - speaker: null - - text: hundreds - start: 1076 - end: 1466 - confidence: 0.99992 - speaker: null - - text: of - start: 1498 - end: 1646 - confidence: 1 - speaker: null - speaker: null + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.", + start: 250, + end: 6350, + confidence: 0.72412, + words: + [ + { + text: "Smoke", + start: 250, + end: 650, + confidence: 0.72412, + speaker: null, + }, + { + text: "from", + start: 730, + end: 1022, + confidence: 0.99996, + speaker: null, + }, + { + text: "hundreds", + start: 1076, + end: 1466, + confidence: 0.99992, + speaker: null, + }, + { + text: "of", + start: 1498, + end: 1646, + confidence: 1, + speaker: null, + }, + ], + speaker: null, + } + SentencesResponse: x-label: Sentences response type: object @@ -5320,76 +4790,107 @@ components: type: array items: x-label: Sentence - $ref: '#/components/schemas/TranscriptSentence' + $ref: "#/components/schemas/TranscriptSentence" example: - sentences: - - text: >- - Smoke from hundreds of wildfires in Canada is triggering air - quality alerts throughout the US. - start: 250 - end: 6350 - confidence: 0.72412 - words: - - text: Smoke - start: 250 - end: 650 - confidence: 0.72412 - speaker: null - - text: from - start: 730 - end: 1022 - confidence: 0.99996 - speaker: null - - text: hundreds - start: 1076 - end: 1466 - confidence: 0.99992 - speaker: null - - text: of - start: 1498 - end: 1646 - confidence: 1 - speaker: null - speaker: null - - text: Skylines from Maine to Maryland to Minnesota are gray and smoggy. - start: 6500 - end: 11050 - confidence: 0.99819 - words: - - text: Skylines - start: 6500 - end: 7306 - confidence: 0.99819 - speaker: null - - text: from - start: 7338 - end: 7534 - confidence: 0.99987 - speaker: null - - text: Maine - start: 7572 - end: 7962 - confidence: 0.9972 - speaker: null - - text: to - start: 8026 - end: 8206 - confidence: 1 - speaker: null - - text: Maryland - start: 8228 - end: 8650 - confidence: 0.5192 - speaker: null - - text: to - start: 8730 - end: 8926 - confidence: 1 - speaker: null - speaker: null - id: d5a3d302-066e-43fb-b63b-8f57baf185db - confidence: 0.9579390654205628 - audio_duration: 281 + { + sentences: + [ + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US.", + start: 250, + end: 6350, + confidence: 0.72412, + words: + [ + { + text: "Smoke", + start: 250, + end: 650, + confidence: 0.72412, + speaker: null, + }, + { + text: "from", + start: 730, + end: 1022, + confidence: 0.99996, + speaker: null, + }, + { + text: "hundreds", + start: 1076, + end: 1466, + confidence: 0.99992, + speaker: null, + }, + { + text: "of", + start: 1498, + end: 1646, + confidence: 1, + speaker: null, + }, + ], + speaker: null, + }, + { + text: "Skylines from Maine to Maryland to Minnesota are gray and smoggy.", + start: 6500, + end: 11050, + confidence: 0.99819, + words: + [ + { + text: "Skylines", + start: 6500, + end: 7306, + confidence: 0.99819, + speaker: null, + }, + { + text: "from", + start: 7338, + end: 7534, + confidence: 0.99987, + speaker: null, + }, + { + text: "Maine", + start: 7572, + end: 7962, + confidence: 0.9972, + speaker: null, + }, + { + text: "to", + start: 8026, + end: 8206, + confidence: 1, + speaker: null, + }, + { + text: "Maryland", + start: 8228, + end: 8650, + confidence: 0.5192, + speaker: null, + }, + { + text: "to", + start: 8730, + end: 8926, + confidence: 1, + speaker: null, + }, + ], + speaker: null, + }, + ], + id: "d5a3d302-066e-43fb-b63b-8f57baf185db", + confidence: 0.9579390654205628, + audio_duration: 281, + } + TranscriptParagraph: x-label: Paragraph type: object @@ -5427,40 +4928,46 @@ components: type: array items: x-label: Word - $ref: '#/components/schemas/TranscriptWord' + $ref: "#/components/schemas/TranscriptWord" example: - text: >- - Smoke from hundreds of wildfires in Canada is triggering air quality - alerts throughout the US. Skylines from Maine to Maryland to Minnesota - are gray and smoggy. And in some places, the air quality warnings - include the warning to stay inside. We wanted to better understand - what's happening here and why, so we called Peter Decarlo, an - associate professor in the Department of Environmental Health and - Engineering at Johns Hopkins University. Good morning, professor. - start: 250 - end: 26950 - confidence: 0.73033 - words: - - text: Smoke - start: 250 - end: 650 - confidence: 0.73033 - speaker: null - - text: from - start: 730 - end: 1022 - confidence: 1 - speaker: null - - text: hundreds - start: 1076 - end: 1466 - confidence: 0.99992 - speaker: null - - text: of - start: 1498 - end: 1646 - confidence: 1 - speaker: null + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter Decarlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Good morning, professor.", + start: 250, + end: 26950, + confidence: 0.73033, + words: + [ + { + text: "Smoke", + start: 250, + end: 650, + confidence: 0.73033, + speaker: null, + }, + { + text: "from", + start: 730, + end: 1022, + confidence: 1, + speaker: null, + }, + { + text: "hundreds", + start: 1076, + end: 1466, + confidence: 0.99992, + speaker: null, + }, + { + text: "of", + start: 1498, + end: 1646, + confidence: 1, + speaker: null, + }, + ], + } + ParagraphsResponse: x-label: Paragraphs response type: object @@ -5494,78 +5001,87 @@ components: type: array items: x-label: Paragraph - $ref: '#/components/schemas/TranscriptParagraph' + $ref: "#/components/schemas/TranscriptParagraph" example: - paragraphs: - - text: >- - Smoke from hundreds of wildfires in Canada is triggering air - quality alerts throughout the US. Skylines from Maine to Maryland - to Minnesota are gray and smoggy. And in some places, the air - quality warnings include the warning to stay inside. We wanted to - better understand what's happening here and why, so we called - Peter Decarlo, an associate professor in the Department of - Environmental Health and Engineering at Johns Hopkins University. - Good morning, professor. - start: 250 - end: 26950 - confidence: 0.73033 - words: - - text: Smoke - start: 250 - end: 650 - confidence: 0.73033 - speaker: null - - text: from - start: 730 - end: 1022 - confidence: 1 - speaker: null - - text: hundreds - start: 1076 - end: 1466 - confidence: 0.99992 - speaker: null - - text: of - start: 1498 - end: 1646 - confidence: 1 - speaker: null - - text: >- - Good morning. So what is it about the conditions right now that - have caused this round of wildfires to affect so many people so - far away? Well, there's a couple of things. The season has been - pretty dry already, and then the fact that we're getting hit in - the US. Is because there's a couple of weather systems that are - essentially channeling the smoke from those Canadian wildfires - through Pennsylvania into the Mid Atlantic and the Northeast and - kind of just dropping the smoke there. - start: 27850 - end: 56190 - confidence: 0.99667 - words: - - text: Good - start: 27850 - end: 28262 - confidence: 0.99667 - speaker: null - - text: morning. - start: 28316 - end: 28920 - confidence: 0.99742 - speaker: null - - text: So - start: 29290 - end: 29702 - confidence: 0.94736 - speaker: null - id: d5a3d302-066e-43fb-b63b-8f57baf185db - confidence: 0.9578730257009361 - audio_duration: 281 + { + paragraphs: + [ + { + text: "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter Decarlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University. Good morning, professor.", + start: 250, + end: 26950, + confidence: 0.73033, + words: + [ + { + text: "Smoke", + start: 250, + end: 650, + confidence: 0.73033, + speaker: null, + }, + { + text: "from", + start: 730, + end: 1022, + confidence: 1, + speaker: null, + }, + { + text: "hundreds", + start: 1076, + end: 1466, + confidence: 0.99992, + speaker: null, + }, + { + text: "of", + start: 1498, + end: 1646, + confidence: 1, + speaker: null, + }, + ], + }, + { + text: "Good morning. So what is it about the conditions right now that have caused this round of wildfires to affect so many people so far away? Well, there's a couple of things. The season has been pretty dry already, and then the fact that we're getting hit in the US. Is because there's a couple of weather systems that are essentially channeling the smoke from those Canadian wildfires through Pennsylvania into the Mid Atlantic and the Northeast and kind of just dropping the smoke there.", + start: 27850, + end: 56190, + confidence: 0.99667, + words: + [ + { + text: "Good", + start: 27850, + end: 28262, + confidence: 0.99667, + speaker: null, + }, + { + text: "morning.", + start: 28316, + end: 28920, + confidence: 0.99742, + speaker: null, + }, + { + text: "So", + start: 29290, + end: 29702, + confidence: 0.94736, + speaker: null, + }, + ], + }, + ], + id: "d5a3d302-066e-43fb-b63b-8f57baf185db", + confidence: 0.9578730257009361, + audio_duration: 281, + } + PageDetails: x-label: Page details - description: >- - Details of the transcript page. Transcripts are sorted from newest to - oldest. The previous URL always points to a page with older transcripts. + description: Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. type: object x-fern-sdk-group-name: transcripts additionalProperties: false @@ -5591,30 +5107,23 @@ components: format: url prev_url: x-label: Previous URL - description: >- - The URL to the next page of transcripts. The previous URL always - points to a page with older transcripts. - type: - - string - - 'null' + description: The URL to the next page of transcripts. The previous URL always points to a page with older transcripts. + type: [string, "null"] format: url next_url: x-label: Next URL - description: >- - The URL to the next page of transcripts. The next URL always points - to a page with newer transcripts. - type: - - string - - 'null' + description: The URL to the next page of transcripts. The next URL always points to a page with newer transcripts. + type: [string, "null"] format: url example: - limit: 10 - result_count: 10 - current_url: https://api.assemblyai.com/v2/transcript?limit=10 - prev_url: >- - https://api.assemblyai.com/v2/transcript?limit=10&before_id=62npeahu2b-a8ea-4112-854c-69542c20d90c - next_url: >- - https://api.assemblyai.com/v2/transcript?limit=10&after_id=62nfw3mlar-01ad-4631-92f6-629929496eed + { + limit: 10, + result_count: 10, + current_url: "https://api.assemblyai.com/v2/transcript?limit=10", + prev_url: "https://api.assemblyai.com/v2/transcript?limit=10&before_id=62npeahu2b-a8ea-4112-854c-69542c20d90c", + next_url: "https://api.assemblyai.com/v2/transcript?limit=10&after_id=62nfw3mlar-01ad-4631-92f6-629929496eed", + } + TranscriptListItem: x-label: Transcript list item type: object @@ -5642,21 +5151,19 @@ components: status: x-label: Status description: The status of the transcript - $ref: '#/components/schemas/TranscriptStatus' + $ref: "#/components/schemas/TranscriptStatus" created: x-label: Created description: The date and time the transcript was created type: string - pattern: ^(?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))$ + pattern: '^(?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))$' x-fern-type: datetime x-ts-type: Date completed: x-label: Completed description: The date and time the transcript was completed - type: - - string - - 'null' - pattern: ^(?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))$ + type: [string, "null"] + pattern: '^(?:(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2}(?:\.\d+)?))$' x-fern-type: optional x-ts-type: Date | null audio_url: @@ -5667,23 +5174,21 @@ components: error: x-label: Error description: Error message of why the transcript failed - type: - - string - - 'null' + type: [string, "null"] example: - id: 9ea68fd3-f953-42c1-9742-976c447fb463 - resource_url: >- - https://api.assemblyai.com/v2/transcript/9ea68fd3-f953-42c1-9742-976c447fb463 - status: completed - created: '2023-11-02T21:49:25.586965' - completed: '2023-11-02T21:49:25.586965' - audio_url: https://assembly.ai/wildfires.mp3 - error: null + { + id: "9ea68fd3-f953-42c1-9742-976c447fb463", + resource_url: "https://api.assemblyai.com/v2/transcript/9ea68fd3-f953-42c1-9742-976c447fb463", + status: "completed", + created: "2023-11-02T21:49:25.586965", + completed: "2023-11-02T21:49:25.586965", + audio_url: "https://assembly.ai/wildfires.mp3", + error: null, + } + TranscriptList: x-label: Transcript list - description: >- - A list of transcripts. Transcripts are sorted from newest to oldest. The - previous URL always points to a page with older transcripts. + description: A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts. type: object x-fern-sdk-group-name: transcripts additionalProperties: false @@ -5694,52 +5199,56 @@ components: page_details: x-label: Page details description: Details of the transcript page - $ref: '#/components/schemas/PageDetails' + $ref: "#/components/schemas/PageDetails" transcripts: x-label: Transcripts description: An array of transcripts type: array items: x-label: Transcript list item - $ref: '#/components/schemas/TranscriptListItem' + $ref: "#/components/schemas/TranscriptListItem" example: - page_details: - limit: 3 - result_count: 3 - current_url: https://api.assemblyai.com/v2/transcript?limit=3 - prev_url: >- - https://api.assemblyai.com/v2/transcript?limit=3&before_id=28a73d01-98db-41dd-9e98-2533ba0af117 - next_url: >- - https://api.assemblyai.com/v2/transcript?limit=3&after_id=b33f4691-85b7-4f31-be12-a87cef1c1229 - transcripts: - - id: b33f4691-85b7-4f31-be12-a87cef1c1229 - resource_url: >- - https://api.assemblyai.com/v2/transcript/b33f4691-85b7-4f31-be12-a87cef1c1229 - status: completed - created: '2024-03-11T21:29:59.936851' - completed: '2024-03-11T21:30:07.314223' - audio_url: http://deleted_by_user - error: null - - id: ce522f10-d204-42e8-a838-6b95098145cc - resource_url: >- - https://api.assemblyai.com/v2/transcript/ce522f10-d204-42e8-a838-6b95098145cc - status: error - created: '2024-03-11T21:23:59.979420' - completed: null - audio_url: https://storage.googleapis.com/client-docs-samples/nbc.oopsie - error: >- - Download error, unable to download - https://storage.googleapis.com/client-docs-samples/nbc.oopsie. - Please make sure the file exists and is accessible from the - internet. - - id: 28a73d01-98db-41dd-9e98-2533ba0af117 - resource_url: >- - https://api.assemblyai.com/v2/transcript/28a73d01-98db-41dd-9e98-2533ba0af117 - status: completed - created: '2024-03-11T21:12:57.372215' - completed: '2024-03-11T21:13:03.267020' - audio_url: https://assembly.ai/nbc.mp3 - error: null + { + page_details: + { + limit: 3, + result_count: 3, + current_url: "https://api.assemblyai.com/v2/transcript?limit=3", + prev_url: "https://api.assemblyai.com/v2/transcript?limit=3&before_id=28a73d01-98db-41dd-9e98-2533ba0af117", + next_url: "https://api.assemblyai.com/v2/transcript?limit=3&after_id=b33f4691-85b7-4f31-be12-a87cef1c1229", + }, + transcripts: + [ + { + id: "b33f4691-85b7-4f31-be12-a87cef1c1229", + resource_url: "https://api.assemblyai.com/v2/transcript/b33f4691-85b7-4f31-be12-a87cef1c1229", + status: "completed", + created: "2024-03-11T21:29:59.936851", + completed: "2024-03-11T21:30:07.314223", + audio_url: "http://deleted_by_user", + error: null, + }, + { + id: "ce522f10-d204-42e8-a838-6b95098145cc", + resource_url: "https://api.assemblyai.com/v2/transcript/ce522f10-d204-42e8-a838-6b95098145cc", + status: "error", + created: "2024-03-11T21:23:59.979420", + completed: null, + audio_url: "https://storage.googleapis.com/client-docs-samples/nbc.oopsie", + error: "Download error, unable to download https://storage.googleapis.com/client-docs-samples/nbc.oopsie. Please make sure the file exists and is accessible from the internet.", + }, + { + id: "28a73d01-98db-41dd-9e98-2533ba0af117", + resource_url: "https://api.assemblyai.com/v2/transcript/28a73d01-98db-41dd-9e98-2533ba0af117", + status: "completed", + created: "2024-03-11T21:12:57.372215", + completed: "2024-03-11T21:13:03.267020", + audio_url: "https://assembly.ai/nbc.mp3", + error: null, + }, + ], + } + UploadedFile: x-label: Uploaded file type: object @@ -5750,13 +5259,15 @@ components: properties: upload_url: x-label: Uploaded file URL - description: > - A URL that points to your audio file, accessible only by - AssemblyAI's servers + description: | + A URL that points to your audio file, accessible only by AssemblyAI's servers type: string format: url example: - upload_url: https://cdn.assemblyai.com/upload/f756988d-47e2-4ca3-96ce-04bb168f8f2a + { + upload_url: "https://cdn.assemblyai.com/upload/f756988d-47e2-4ca3-96ce-04bb168f8f2a", + } + AudioIntelligenceModelStatus: x-label: Audio intelligence model status x-fern-sdk-group-name: transcripts @@ -5770,12 +5281,12 @@ components: label: Success unavailable: label: Unavailable + Error: x-label: Error type: object additionalProperties: true - required: - - error + required: [error] properties: error: x-label: Error message @@ -5786,12 +5297,12 @@ components: type: string const: error example: - error: Transcript creation error, audio_url not found + { error: "Transcript creation error, audio_url not found" } + + # Speech Understanding Request Schemas TranslationRequestBody: x-label: Translation request body - description: >- - Request body for - [Translation](https://www.assemblyai.com/docs/speech-understanding/translation). + description: Request body for [Translation](https://www.assemblyai.com/docs/speech-understanding/translation). type: object properties: translation: @@ -5801,150 +5312,98 @@ components: type: array items: type: string - description: >- - List of target language codes (e.g., `["es", "de"]`). See - [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) - for supported languages. + description: List of target language codes (e.g., `["es", "de"]`). See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for supported languages. formal: type: boolean - description: >- - Use formal language style. See - [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) - for more details. + description: Use formal language style. See [Translation](https://www.assemblyai.com/docs/speech-understanding/translation) for more details. default: true match_original_utterance: type: boolean - description: >- - When enabled with Speaker Labels, returns translated text in the - utterances array. Each utterance will include a - `translated_texts` key containing translations for each target - language. + description: When enabled with Speaker Labels, returns translated text in the utterances array. Each utterance will include a `translated_texts` key containing translations for each target language. default: false required: - target_languages required: - translation + SpeakerIdentificationRequestBody: type: object - description: >- - Request body for [Speaker - Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification). + description: Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification). properties: speaker_identification: type: object properties: speaker_type: type: string - enum: - - role - - name - description: >- - Type of speaker identification. See [Speaker - Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) - for details on each type. + enum: [role, name] + description: Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type. known_values: type: array items: type: string - description: >- - Required if speaker_type is "role". Each value must be 35 - characters or less. + description: Required if speaker_type is "role". Each value must be 35 characters or less. speakers: type: array - description: >- - An array of speaker objects with metadata to improve - identification accuracy. Each object should include a `role` or - `name` (depending on `speaker_type`) and an optional - `description` to help the model identify the speaker. You can - also include any additional custom properties (e.g., `company`, - `title`) to provide more context. Use this as an alternative to - `known_values` when you want to provide additional context about - each speaker. + description: An array of speaker objects with metadata to improve identification accuracy. Each object should include a `role` or `name` (depending on `speaker_type`) and an optional `description` to help the model identify the speaker. You can also include any additional custom properties (e.g., `company`, `title`) to provide more context. Use this as an alternative to `known_values` when you want to provide additional context about each speaker. items: type: object properties: role: type: string - description: >- - The role of the speaker. Required when `speaker_type` is - "role". + description: The role of the speaker. Required when `speaker_type` is "role". name: type: string - description: >- - The name of the speaker. Required when `speaker_type` is - "name". + description: The name of the speaker. Required when `speaker_type` is "name". description: type: string - description: >- - A description of the speaker to help the model identify - them based on conversational context. + description: A description of the speaker to help the model identify them based on conversational context. additionalProperties: true required: - speaker_type required: - speaker_identification + CustomFormattingRequestBody: type: object - description: >- - Request body for [Custom - Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). + description: Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). properties: custom_formatting: type: object properties: date: type: string - description: >- - Date format pattern (e.g., `"mm/dd/yyyy"`). See [Custom - Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) - for more details. + description: Date format pattern (e.g., `"mm/dd/yyyy"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. phone_number: type: string - description: >- - Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`). See - [Custom - Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) - for more details. + description: Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. email: type: string - description: >- - Email format pattern (e.g., `"username@domain.com"`). See - [Custom - Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) - for more details. + description: Email format pattern (e.g., `"username@domain.com"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details. required: - custom_formatting + SummarizationRequestBody: type: object - description: >- - Request body for - [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization). + description: Request body for [Summarization](https://www.assemblyai.com/docs/speech-understanding/summarization). properties: summarization: type: object properties: summary_type: type: string - enum: - - paragraph - - bullets - description: >- - Type of summary. Bullets returns short bullet point style - summaries, paragraph is generally more verbose and detailed. + enum: [ paragraph, bullets ] + description: Type of summary. Bullets returns short bullet point style summaries, paragraph is generally more verbose and detailed. effort: type: string - enum: - - low - - medium + enum: [ low, medium ] required: - summary_type required: - summarization + ActionItemsRequestBody: type: object - description: >- - Request body for [Action - Items](https://www.assemblyai.com/docs/speech-understanding/action-items). + description: Request body for [Action Items](https://www.assemblyai.com/docs/speech-understanding/action-items). properties: action_items: type: object @@ -5954,11 +5413,10 @@ components: description: Option to include decision making in action items. effort: type: string - enum: - - low - - medium + enum: [ low, medium ] required: - action_items + TranslationResponse: type: object properties: @@ -5967,6 +5425,7 @@ components: properties: status: type: string + SpeakerIdentificationResponse: type: object properties: @@ -5975,13 +5434,12 @@ components: properties: mapping: type: object - description: >- - A mapping of the original generic speaker labels (e.g., "A", - "B") to the identified speaker names or roles. + description: A mapping of the original generic speaker labels (e.g., "A", "B") to the identified speaker names or roles. additionalProperties: type: string status: type: string + CustomFormattingResponse: type: object properties: @@ -5994,6 +5452,7 @@ components: type: string formatted_text: type: string + SummarizationResponse: type: object properties: @@ -6010,6 +5469,7 @@ components: required: - summary - status + ActionItemsResponse: type: object properties: @@ -6026,22 +5486,16 @@ components: required: - action_items - status + examples: VttSubtitlesResponse: - value: > + value: | WEBVTT - 00:12.340 --> 00:16.220 - Last year I showed these two slides said that demonstrate - 00:16.200 --> 00:20.040 - - that the Arctic ice cap which for most of the last 3,000,000 years has - been the - + that the Arctic ice cap which for most of the last 3,000,000 years has been the 00:20.020 --> 00:25.040 - size of the lower 48 States has shrunk by 40% but this understates SrtSubtitlesResponse: value: | @@ -6056,6 +5510,7 @@ components: 3 00:00:20,254 --> 00:00:23,274 of the lower 48 states, has shrunk by 40%. + responses: BadRequest: x-label: Bad request @@ -6063,45 +5518,41 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Error' - example: - error: This is a sample error message + $ref: "#/components/schemas/Error" + example: { "error": "This is a sample error message" } Unauthorized: x-label: Unauthorized description: Unauthorized content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" example: - error: Authentication error, API token missing/invalid + { "error": "Authentication error, API token missing/invalid" } CannotAccessUploadedFile: x-label: Cannot access uploaded file description: Cannot access uploaded file content: application/json: schema: - $ref: '#/components/schemas/Error' - example: - error: Cannot access uploaded file + $ref: "#/components/schemas/Error" + example: { "error": "Cannot access uploaded file" } NotFound: x-label: Not found description: Not found content: application/json: schema: - $ref: '#/components/schemas/Error' - example: - error: Not found + $ref: "#/components/schemas/Error" + example: { "error": "Not found" } TooManyRequests: x-label: Too many requests description: Too many requests content: application/json: schema: - $ref: '#/components/schemas/Error' - example: - error: Too Many Requests + $ref: "#/components/schemas/Error" + example: { "error": "Too Many Requests" } headers: Retry-After: description: The number of seconds to wait before retrying the request @@ -6113,18 +5564,18 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Error' + $ref: "#/components/schemas/Error" example: - error: >- - Internal server error. Please retry your request. If the error - persists, please contact support@assemblyai.com for more - information. + { + "error": "Internal server error. Please retry your request. If the error persists, please contact support@assemblyai.com for more information.", + } ServiceUnavailable: x-label: Service unavailable description: Service unavailable GatewayTimeout: x-label: Gateway timeout description: Gateway timeout + securitySchemes: ApiKey: type: apiKey