Skip to content

FishAudio

.NET SDK for Fish Audio generation APIs with generated REST coverage and Microsoft.Extensions.AI tool adapters.

Nuget package dotnet License: MIT Discord

Generated API coverage

Built from the Fish Audio OpenAPI definition so the SDK stays aligned with the published API.

MEAI tools

Expose common operations as AIFunction tools for use with any compatible IChatClient.

Modern .NET

Generated with AutoSDK and shaped for trimming, NativeAOT awareness, nullability, and current .NET conventions.

Usage

Installation

1
dotnet add package FishAudio

Client

1
2
3
using FishAudio;

using var client = new FishAudioClient(apiKey);

MEAI Tools

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
using FishAudio;
using Microsoft.Extensions.AI;

var fishAudio = new FishAudioClient(apiKey);
var tools = new[]
{
    fishAudio.AsTextToSpeechTool(referenceId: "your-voice-model-id"),
    fishAudio.AsListModelsTool(),
    fishAudio.AsGetModelTool(),
};
Guides first. See the authentication and MEAI guides in the docs nav for provider-specific setup before running examples.

Generate

Basic example showing how to create a client and make a request.

1
using var client = new FishAudioClient(apiKey);

Support

Bugs

Open an issue in tryAGI/FishAudio.

Ideas and questions

Use GitHub Discussions for feedback and design discussion.

Community

Join the tryAGI Discord for broader SDK discussion.

Acknowledgments

JetBrains logo

This project is supported by JetBrains through the Open Source Support Program.