flowspeech 0.1.0 copy "flowspeech: ^0.1.0" to clipboard
flowspeech: ^0.1.0 copied to clipboard

Dart client for the FlowSpeech text-to-speech API with quota checks, voice selection, and base64 audio responses.

example/main.dart

import 'dart:io';

import 'package:flowspeech/flowspeech.dart';

Future<void> main() async {
  final client = FlowSpeechClient.fromEnvironment();

  try {
    final result = await client.generateSpeech(
      text: 'Welcome to FlowSpeech. This audio was generated from Dart.',
      voiceName: 'Kore',
    );

    await File('flowspeech-output.wav').writeAsBytes(result.audioBytes);
    print('Saved flowspeech-output.wav (${result.mimeType})');
  } finally {
    client.close();
  }
}
0
likes
160
points
24
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart client for the FlowSpeech text-to-speech API with quota checks, voice selection, and base64 audio responses.

Homepage

Topics

#text-to-speech #ai #audio #voice

License

MIT (license)

Dependencies

http

More

Packages that depend on flowspeech