|
| 1 | +server: |
| 2 | + name: speech-ai-server |
| 3 | + config: |
| 4 | + apiKey: "" |
| 5 | +tools: |
| 6 | +- name: assess_pronunciation |
| 7 | + description: "Evaluate English pronunciation quality by comparing spoken audio against reference text. Returns calibrated 0-100 scores at overall, word, and phoneme levels with IPA notation. 17MB model, <300ms latency." |
| 8 | + args: |
| 9 | + - name: audio |
| 10 | + description: "Base64-encoded audio data (WAV, MP3, OGG, FLAC, or WebM)" |
| 11 | + type: string |
| 12 | + required: true |
| 13 | + - name: text |
| 14 | + description: "Reference text that was spoken in the audio" |
| 15 | + type: string |
| 16 | + required: true |
| 17 | + - name: format |
| 18 | + description: "Audio format" |
| 19 | + type: string |
| 20 | + required: false |
| 21 | + default: "wav" |
| 22 | + enum: ["wav", "mp3", "ogg", "flac", "webm"] |
| 23 | + requestTemplate: |
| 24 | + url: "https://api.brainiall.com/v1/pronunciation/assess/base64" |
| 25 | + method: POST |
| 26 | + headers: |
| 27 | + - key: Content-Type |
| 28 | + value: "application/json" |
| 29 | + - key: Ocp-Apim-Subscription-Key |
| 30 | + value: "{{.config.apiKey}}" |
| 31 | + body: | |
| 32 | + { |
| 33 | + "audio": "{{.args.audio}}", |
| 34 | + "text": "{{.args.text}}", |
| 35 | + "format": "{{.args.format}}" |
| 36 | + } |
| 37 | + responseTemplate: |
| 38 | + body: | |
| 39 | + ## Pronunciation Assessment Result |
| 40 | + - **Overall Score**: {{.overallScore}}/100 |
| 41 | + - **Sentence Score**: {{.sentenceScore}}/100 |
| 42 | + - **Confidence**: {{.confidence}} |
| 43 | + {{- range $index, $word := .words }} |
| 44 | + ### Word: {{$word.word}} (Score: {{$word.score}}) |
| 45 | + {{- range $pi, $ph := $word.phonemes }} |
| 46 | + - {{$ph.phoneme}}: {{$ph.score}} |
| 47 | + {{- end }} |
| 48 | + {{- end }} |
| 49 | +
|
| 50 | +- name: transcribe_audio |
| 51 | + description: "Transcribe audio to text with word-level timestamps and confidence scores. Supports WAV, MP3, OGG, FLAC, and WebM formats." |
| 52 | + args: |
| 53 | + - name: audio |
| 54 | + description: "Base64-encoded audio data" |
| 55 | + type: string |
| 56 | + required: true |
| 57 | + - name: format |
| 58 | + description: "Audio format" |
| 59 | + type: string |
| 60 | + required: false |
| 61 | + default: "wav" |
| 62 | + enum: ["wav", "mp3", "ogg", "flac", "webm"] |
| 63 | + requestTemplate: |
| 64 | + url: "https://api.brainiall.com/v1/stt/transcribe/base64" |
| 65 | + method: POST |
| 66 | + headers: |
| 67 | + - key: Content-Type |
| 68 | + value: "application/json" |
| 69 | + - key: Ocp-Apim-Subscription-Key |
| 70 | + value: "{{.config.apiKey}}" |
| 71 | + body: | |
| 72 | + { |
| 73 | + "audio": "{{.args.audio}}", |
| 74 | + "format": "{{.args.format}}" |
| 75 | + } |
| 76 | + responseTemplate: |
| 77 | + body: | |
| 78 | + ## Transcription Result |
| 79 | + - **Text**: {{.text}} |
| 80 | + {{- range $index, $word := .words }} |
| 81 | + - {{$word.word}} ({{$word.start}}s - {{$word.end}}s, confidence: {{$word.confidence}}) |
| 82 | + {{- end }} |
| 83 | +
|
| 84 | +- name: synthesize_speech |
| 85 | + description: "Generate natural speech from text with 12 English voices (US and UK accents). Returns base64-encoded audio. Ranked #1 on TTS Arena." |
| 86 | + args: |
| 87 | + - name: text |
| 88 | + description: "Text to synthesize into speech" |
| 89 | + type: string |
| 90 | + required: true |
| 91 | + - name: voice |
| 92 | + description: "Voice ID to use for synthesis" |
| 93 | + type: string |
| 94 | + required: false |
| 95 | + default: "af_heart" |
| 96 | + requestTemplate: |
| 97 | + url: "https://api.brainiall.com/v1/tts/synthesize" |
| 98 | + method: POST |
| 99 | + headers: |
| 100 | + - key: Content-Type |
| 101 | + value: "application/json" |
| 102 | + - key: Ocp-Apim-Subscription-Key |
| 103 | + value: "{{.config.apiKey}}" |
| 104 | + body: | |
| 105 | + { |
| 106 | + "text": "{{.args.text}}", |
| 107 | + "voice": "{{.args.voice}}" |
| 108 | + } |
| 109 | + responseTemplate: |
| 110 | + body: | |
| 111 | + ## Speech Synthesis Result |
| 112 | + - **Voice**: {{.voice}} |
| 113 | + - **Duration**: {{.duration_ms}}ms |
| 114 | + - **Audio**: {{.audio_base64}} |
| 115 | +
|
| 116 | +- name: list_tts_voices |
| 117 | + description: "List all available text-to-speech voices with their names, genders, and accent information." |
| 118 | + args: [] |
| 119 | + requestTemplate: |
| 120 | + url: "https://api.brainiall.com/v1/tts/voices" |
| 121 | + method: GET |
| 122 | + headers: |
| 123 | + - key: Ocp-Apim-Subscription-Key |
| 124 | + value: "{{.config.apiKey}}" |
| 125 | + responseTemplate: |
| 126 | + body: | |
| 127 | + ## Available Voices |
| 128 | + {{- range $index, $voice := .voices }} |
| 129 | + - **{{$voice.id}}**: {{$voice.name}} ({{$voice.gender}}, {{$voice.accent}}) |
| 130 | + {{- end }} |
0 commit comments