File size: 1,097 Bytes
0f203fb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
 * Schema definitions for the Pollinations Audio API
 */

/**
 * Schema for the respondAudio tool
 */
export const respondAudioSchema = {
  name: 'respondAudio',
  description: 'Generate an audio response to a text prompt and play it through the system',
  inputSchema: {
    type: 'object',
    properties: {
      prompt: {
        type: 'string',
        description: 'The text prompt to respond to with audio'
      },
      voice: {
        type: 'string',
        description: 'Voice to use for audio generation (default: "alloy"). Available options: "alloy", "echo", "fable", "onyx", "nova", "shimmer", "coral", "verse", "ballad", "ash", "sage", "amuch", "dan"'
      },
      seed: {
        type: 'number',
        description: 'Seed for reproducible results (default: random)'
      }
    },
    required: ['prompt']
  }
};



/**
 * Schema for the listAudioVoices tool
 */
export const listAudioVoicesSchema = {
  name: 'listAudioVoices',
  description: 'List all available audio voices for text-to-speech generation',
  inputSchema: {
    type: 'object',
    properties: {}
  }
};