Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

🌿 Fern Regeneration -- February 3, 2025 #62

Merged
merged 4 commits into from
Feb 5, 2025
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
6 changes: 3 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ Export your transcript in SRT or VTT format to use with a video player for subti

```csharp
await client.Transcripts.GetSubtitlesAsync(
"string",
"transcript_id",
SubtitleFormat.Srt,
new GetSubtitlesParams { CharsPerCaption = 1 }
new GetSubtitlesParams()
);
```
</dd>
Expand Down Expand Up @@ -479,7 +479,7 @@ Search through the transcript for keywords. You can search for individual words,
<dd>

```csharp
await client.Transcripts.WordSearchAsync("string", new WordSearchParams { Words = ["string"] });
await client.Transcripts.WordSearchAsync("transcript_id", new WordSearchParams());
```
</dd>
</dl>
Expand Down
2 changes: 1 addition & 1 deletion src/AssemblyAI/AssemblyAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<Version>1.2.1</Version>
<Version>1.2.2</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
2 changes: 1 addition & 1 deletion src/AssemblyAI/Core/Public/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ namespace AssemblyAI;

internal class Version
{
public const string Current = "1.2.1";
public const string Current = "1.2.2";
}
8 changes: 4 additions & 4 deletions src/AssemblyAI/Transcripts/TranscriptsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
var _query = new Dictionary<string, object>();
if (request.Limit != null)
{
_query["limit"] = request.Limit.ToString();

Check warning on line 38 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Compile

Possible null reference assignment.

Check warning on line 38 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Run Tests on ubuntu-latest with net8.0

Possible null reference assignment.

Check warning on line 38 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Run Tests on windows-latest with net8.0

Possible null reference assignment.
}
if (request.Status != null)
{
Expand All @@ -55,7 +55,7 @@
}
if (request.ThrottledOnly != null)
{
_query["throttled_only"] = request.ThrottledOnly.ToString();

Check warning on line 58 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Compile

Possible null reference assignment.

Check warning on line 58 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Run Tests on ubuntu-latest with net8.0

Possible null reference assignment.

Check warning on line 58 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Run Tests on windows-latest with net8.0

Possible null reference assignment.
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
Expand Down Expand Up @@ -280,9 +280,9 @@
/// <example>
/// <code>
/// await client.Transcripts.GetSubtitlesAsync(
/// "string",
/// "transcript_id",
/// SubtitleFormat.Srt,
/// new GetSubtitlesParams { CharsPerCaption = 1 }
/// new GetSubtitlesParams()
/// );
/// </code>
/// </example>
Expand All @@ -297,13 +297,13 @@
var _query = new Dictionary<string, object>();
if (request.CharsPerCaption != null)
{
_query["chars_per_caption"] = request.CharsPerCaption.ToString();

Check warning on line 300 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Compile

Possible null reference assignment.

Check warning on line 300 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Run Tests on ubuntu-latest with net8.0

Possible null reference assignment.

Check warning on line 300 in src/AssemblyAI/Transcripts/TranscriptsClient.cs

View workflow job for this annotation

GitHub Actions / Run Tests on windows-latest with net8.0

Possible null reference assignment.
}
var response = await _client.MakeRequestAsync(
new RawClient.JsonApiRequest
{
BaseUrl = _client.Options.BaseUrl,
Method = HttpMethod.Get,
Method = HttpMethod.Get,
Path = $"v2/transcript/{transcriptId}/{subtitleFormat.Stringify()}",
Query = _query,
Options = options,
Expand Down Expand Up @@ -415,7 +415,7 @@
/// </summary>
/// <example>
/// <code>
/// await client.Transcripts.WordSearchAsync("string", new WordSearchParams { Words = ["string"] });
/// await client.Transcripts.WordSearchAsync("transcript_id", new WordSearchParams());
/// </code>
/// </example>
public async Task<WordSearchResponse> WordSearchAsync(
Expand Down
4 changes: 2 additions & 2 deletions src/AssemblyAI/Transcripts/Types/Transcript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public record Transcript
public IEnumerable<TranscriptWord>? Words { get; set; }

/// <summary>
/// When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
/// See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more information.
/// When multichannel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
/// See [Speaker diarization](https://www.assemblyai.com/docs/speech-to-text/speaker-diarization) and [Multichannel transcription](https://www.assemblyai.com/docs/speech-to-text/speech-recognition#multichannel-transcription) for more information.
/// </summary>
[JsonPropertyName("utterances")]
public IEnumerable<TranscriptUtterance>? Utterances { get; set; }
Expand Down
Loading