aispeechoutlines

1.0.0 • Public • Published

AI Speech Outline Generator

A simple Express middleware for generating speech outlines using OpenAI's GPT model. Provided by Speech Generator AI.

Installation

npm install aispeechoutlines

Usage

const express = require('express');
const createAISpeechOutlineGenerator = require('ai-speech-outline-generator');

const app = express();
const OPENAI_API_KEY = 'your-api-key-here';

app.use('/generate-outline', createAISpeechOutlineGenerator(OPENAI_API_KEY));

app.listen(3000, () => {
  console.log('Server is running on port 3000');
});

Send a POST request to /generate-outline with the following body:

{
  "topic": "Climate Change",
  "purpose": "informative",
  "audience": "college students",
  "duration": "10-minute",
  "keypoints": "causes, effects, solutions",
  "token": "unique-user-token"
}

The response will contain a JSON object with the generated speech outline.

Rate Limiting

This package includes built-in rate limiting. Each unique token is limited to 5 requests per 24-hour period.

Note

This package requires a valid OpenAI API key. Make sure to keep your API key secure and do not expose it in your code.

Readme

Keywords

none

Package Sidebar

Install

npm i aispeechoutlines

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

4.48 kB

Total Files

3

Last publish

Collaborators

  • stargazermedia