Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lemonfox support #42

Closed
haydenbleasel opened this issue Mar 10, 2025 · 0 comments · Fixed by #44
Closed

Lemonfox support #42

haydenbleasel opened this issue Mar 10, 2025 · 0 comments · Fixed by #44

Comments

@haydenbleasel
Copy link
Owner

Provider name
Lemonfox

Provider description
TTS, STT

Provider documentation
https://www.lemonfox.ai/apis/speech-to-text
https://www.lemonfox.ai/apis/text-to-speech

Provider example

OpenAI SDK compatible.

// npm install --save openai or yarn add openai
import OpenAI from "openai";
import fs from "fs";

const openai = new OpenAI({
  apiKey: "YOUR_API_KEY",
  baseURL: "https://api.lemonfox.ai/v1",
});

async function main() {
  const transcription = await openai.audio.transcriptions.create({
    file: fs.createReadStream("audio.mp3"),
    model: "whisper-1",
  });

  console.log(transcription.text);
}
main();
@haydenbleasel haydenbleasel linked a pull request Mar 10, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant