Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace AssemblyAI
{
/// <summary>
/// An array of results for the Key Phrases model, if it is enabled.<br/>
/// See [Key phrases](https://www.assemblyai.com/docs/models/key-phrases) for more information.<br/>
/// See [Key phrases](https://www.assemblyai.com/docs/speech-understanding/key-phrases) for more information.<br/>
/// 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}]}]}
/// </summary>
public sealed partial class AutoHighlightsResult2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace AssemblyAI
{
/// <summary>
/// An array of results for the Content Moderation model, if it is enabled.<br/>
/// See [Content moderation](https://www.assemblyai.com/docs/models/content-moderation) for more information.<br/>
/// See [Content moderation](https://www.assemblyai.com/docs/content-moderation) for more information.<br/>
/// 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}}}
/// </summary>
public sealed partial class ContentSafetyLabelsResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace AssemblyAI
{
/// <summary>
///
/// Request body for [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting).
/// </summary>
public sealed partial class CustomFormattingRequestBody
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ namespace AssemblyAI
public sealed partial class CustomFormattingRequestBodyCustomFormatting
{
/// <summary>
/// Date format pattern (e.g., `"mm/dd/yyyy"`)
/// Date format pattern (e.g., `"mm/dd/yyyy"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("date")]
public string? Date { get; set; }

/// <summary>
/// Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`)
/// Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("phone_number")]
public string? PhoneNumber { get; set; }

/// <summary>
/// Email format pattern (e.g., `"username@domain.com"`)
/// Email format pattern (e.g., `"username@domain.com"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("email")]
public string? Email { get; set; }
Expand All @@ -36,13 +36,13 @@ public sealed partial class CustomFormattingRequestBodyCustomFormatting
/// Initializes a new instance of the <see cref="CustomFormattingRequestBodyCustomFormatting" /> class.
/// </summary>
/// <param name="date">
/// Date format pattern (e.g., `"mm/dd/yyyy"`)
/// Date format pattern (e.g., `"mm/dd/yyyy"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details.
/// </param>
/// <param name="phoneNumber">
/// Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`)
/// Phone number format pattern (e.g., `"(xxx)xxx-xxxx"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details.
/// </param>
/// <param name="email">
/// Email format pattern (e.g., `"username@domain.com"`)
/// Email format pattern (e.g., `"username@domain.com"`). See [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting) for more details.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
namespace AssemblyAI
{
/// <summary>
/// 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/models/pii-redaction) for more details.<br/>
/// 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.<br/>
/// Example: mp3
/// </summary>
public enum RedactPiiAudioQuality
{
/// <summary>
/// //www.assemblyai.com/docs/models/pii-redaction) for more details.
/// //www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details.
/// </summary>
Mp3,
/// <summary>
/// //www.assemblyai.com/docs/models/pii-redaction) for more details.
/// //www.assemblyai.com/docs/pii-redaction#request-for-redacted-audio) for more details.
/// </summary>
Wav,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public sealed partial class SentimentAnalysisResult
public string? Channel { get; set; }

/// <summary>
/// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null
/// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/speaker-diarization) is enabled, else null
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("speaker")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand Down Expand Up @@ -86,7 +86,7 @@ public sealed partial class SentimentAnalysisResult
/// The channel of this utterance. The left and right channels are channels 1 and 2. Additional channels increment the channel number sequentially.
/// </param>
/// <param name="speaker">
/// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null
/// The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/pre-recorded-audio/speaker-diarization) is enabled, else null
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace AssemblyAI
{
/// <summary>
///
/// Request body for [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification).
/// </summary>
public sealed partial class SpeakerIdentificationRequestBody
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace AssemblyAI
public sealed partial class SpeakerIdentificationRequestBodySpeakerIdentification
{
/// <summary>
/// Type of speaker identification
/// Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("speaker_type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerTypeJsonConverter))]
Expand All @@ -32,7 +32,7 @@ public sealed partial class SpeakerIdentificationRequestBodySpeakerIdentificatio
/// Initializes a new instance of the <see cref="SpeakerIdentificationRequestBodySpeakerIdentification" /> class.
/// </summary>
/// <param name="speakerType">
/// Type of speaker identification
/// Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type.
/// </param>
/// <param name="knownValues">
/// Required if speaker_type is "role". Each value must be 35 characters or less.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace AssemblyAI
{
/// <summary>
/// Type of speaker identification
/// Type of speaker identification. See [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification) for details on each type.
/// </summary>
public enum SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
namespace AssemblyAI
{
/// <summary>
/// The replacement logic for detected PII, can be `entity_name` or `hash`. See [PII redaction](https://www.assemblyai.com/docs/models/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.
/// </summary>
public enum SubstitutionPolicy
{
/// <summary>
/// //www.assemblyai.com/docs/models/pii-redaction) for more details.
/// //www.assemblyai.com/docs/pii-redaction) for more details.
/// </summary>
EntityName,
/// <summary>
/// //www.assemblyai.com/docs/models/pii-redaction) for more details.
/// //www.assemblyai.com/docs/pii-redaction) for more details.
/// </summary>
Hash,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace AssemblyAI
{
/// <summary>
/// The result of the Topic Detection model, if it is enabled.<br/>
/// See [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) for more information.<br/>
/// See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) for more information.<br/>
/// 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}}
/// </summary>
public sealed partial class TopicDetectionModelResult
Expand Down
Loading
Loading