vamboai 1.0.1 copy "vamboai: ^1.0.1" to clipboard
vamboai: ^1.0.1 copied to clipboard

VamboAI is a comprehensive Dart package designed to provide seamless integration with the Vambo AI API. It allows developers to leverage powerful language identification and translation capabilities i [...]

example/main.dart

//
//  vamboai
//  main.dart
//
//  Created by Ngonidzashe Mangudya on 25/06/2024.
//  Copyright (c) 2024 Codecraft Solutions. All rights reserved.
//

import 'package:vamboai/vamboai.dart';

void main() async {
  final ai = VamboAI.fromAPIKey('your_api_key');

  // Identify the language of a given text
  final response = await ai.identify('Hello, how are you?');
  print('Primary Language: ${response.primary.name}');
  print(
      'Additional Languages: ${response.additional.map((lang) => lang.name).join(', ')}');

  // Translate text from English to French
  final tResponse = await ai.translate(
    'Hello, how are you?',
    from: Language.english,
    to: Language.french,
  );
  print('Translation: ${tResponse.output}');
}
1
likes
150
pub points
0%
popularity

Publisher

verified publisheriamngoni.co.zw

VamboAI is a comprehensive Dart package designed to provide seamless integration with the Vambo AI API. It allows developers to leverage powerful language identification and translation capabilities in their applications. This package supports a wide range of languages, making it an essential tool for applications targeting diverse linguistic audiences, particularly those focusing on African languages.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on vamboai