ReferenceHTTP API
audioAnalyzer
The audioAnalyzer router: 7 methods of the audio-analyzer capability, with tier, scope, input and output.
Capability audio-analyzer · scope system · mode singleton · source packages/types/src/capabilities/audio-analyzer.cap.ts:145.
Every method is called at /trpc/audioAnalyzer.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
analyseChunk | mutation | protected | create | no |
classify | query | protected | view | no |
attachDevice | mutation | protected | create | no |
detachDevice | mutation | protected | create | no |
isReady | query | protected | view | no |
dispose | mutation | protected | create | no |
reprobeAudioEngine | mutation | admin | admin only | no |
audioAnalyzer.analyseChunk
- Kind: mutation —
POST /trpc/audioAnalyzer.analyseChunk - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityaudio-analyzer, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=audioAnalyzer.analyseChunkon your hub
Input
{ chunk: AudioChunkInputSchema; settings: AudioAnalysisSettingsSchema }Output
AudioAnalysisResultSchema | nullShapes: AudioChunkInputSchema · AudioAnalysisSettingsSchema · AudioAnalysisResultSchema
audioAnalyzer.classify
- Kind: query —
GET /trpc/audioAnalyzer.classify - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaudio-analyzer, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=audioAnalyzer.classifyon your hub
Input
AudioChunkInputSchemaOutput
AudioClassificationResultSchemaShapes: AudioChunkInputSchema · AudioClassificationResultSchema
audioAnalyzer.attachDevice
- Kind: mutation —
POST /trpc/audioAnalyzer.attachDevice - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityaudio-analyzer, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=audioAnalyzer.attachDeviceon your hub
Input
AudioAttachDeviceInputSchemaOutput
AudioAttachDeviceResultSchemaShapes: AudioAttachDeviceInputSchema · AudioAttachDeviceResultSchema
audioAnalyzer.detachDevice
- Kind: mutation —
POST /trpc/audioAnalyzer.detachDevice - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityaudio-analyzer, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=audioAnalyzer.detachDeviceon your hub
Input
{ deviceId: number }Output
AudioDetachDeviceResultSchemaShapes: AudioDetachDeviceResultSchema
audioAnalyzer.isReady
- Kind: query —
GET /trpc/audioAnalyzer.isReady - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaudio-analyzer, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=audioAnalyzer.isReadyon your hub
Input
voidOutput
booleanaudioAnalyzer.dispose
- Kind: mutation —
POST /trpc/audioAnalyzer.dispose - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
createon capabilityaudio-analyzer, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=audioAnalyzer.disposeon your hub
Input
voidOutput
voidaudioAnalyzer.reprobeAudioEngine
- Kind: mutation —
POST /trpc/audioAnalyzer.reprobeAudioEngine - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=audioAnalyzer.reprobeAudioEngineon your hub
Input
voidOutput
{ backend: string }