패키지, 저장소 및 앱 카테고리 검색

GitHub 저장소poshie0456/DartPositiveVibesGenerator

DartPositiveVibesGenerator

텍스트 음성 변환 및 긍정 문장 생성을 위한 Dart 서비스

DartPositiveVibesGenerator 프로젝트 이미지
스타
1
포크
0
최근 푸시(UTC)
2024. 12. 15.
프로젝트 상태
활성

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

DartPositiveVibesGenerator

Dart Service for Text-to-Speech and Affirmation Generation

This Dart service provides functionality for generating affirmations and converting them to speech. The service interacts with two APIs:

  1. Generative Language API for generating affirmation content.
  2. Eleven Labs API for converting text to speech.

Features

  • Text Generation: Randomly selects an affirmation prompt or uses custom input to generate a text response.
  • Text-to-Speech: Converts the generated affirmation text into speech and saves it as an MP3 file.

Setup

  1. API Keys: Replace the APIKEY and Eleven Labs API key with your own credentials.

    • For the Generative Language API, provide your API key from Google Cloud.
    • For Eleven Labs, obtain your voice_id and API key for text-to-speech functionality.
  2. Dependencies:

    • http: For making HTTP requests.
    • path_provider: To save the MP3 file to a local directory.
    • audioplayers: To play the generated audio file.

Example Usage

https://github.com/user-attachments/assets/66428673-9781-42b3-9633-5a2b1880857f

final service = Service();

// Generate and print an affirmation
String affirmation = await service.textGeneration();
print(affirmation);

// Generate speech from the affirmation and save as MP3
String audioFilePath = await service.generateAndPlaySpeech(affirmation);
print("Audio saved at $audioFilePath");
Tarik Panday GitHub avatar
GitHub 작성자

Tarik Panday ↗

Full Stack Mobile developer Proficient in: Flutter, NodeJS, Firebase, Python, MongoDB

South Africa, Gauteng, Midrand
언어Dart

분류

프로젝트에 맞는 저장소를 선택하려면?

사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.

  1. 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
  2. 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
  3. 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.

출처 및 관리

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗