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

incorrect querystring param building for WordSearchAsync #43

@Swimburger

Description

@Swimburger

When running the following code:

var client = new AssemblyAIClient(new ClientOptions
{
    ApiKey = "<YOUR_API_KEY>"
});

const string audioUrl = "https://github.com/AssemblyAI-Community/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3";

var transcript = await client.Transcripts.TranscribeAsync(new TranscriptParams
{
    AudioUrl = audioUrl,
});

var matchesResponse = await client.Transcripts.WordSearchAsync(
    transcript.Id, 
    ["foo", "bar", "foo bar", "42"]
);

The WordSearchAsync method sends an HTTP request with the following URL:
https://api.assemblyai.com/v2/transcript/fb65d5a9-caed-477d-96bf-ee90337c7c5a/word-search?words=foo&words=bar&words=foo%20bar&words=42

But it should be:
https://api.assemblyai.com/v2/transcript/fb65d5a9-caed-477d-96bf-ee90337c7c5a/word-search?words=foo,bar,foo%20bar,42

A comma separated string

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't workingtriage/confirmedIssue is well-defined and understood.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions