Dominevo
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.

MethodKindTierToken scopeViewer
analyseChunkmutationprotectedcreateno
classifyqueryprotectedviewno
attachDevicemutationprotectedcreateno
detachDevicemutationprotectedcreateno
isReadyqueryprotectedviewno
disposemutationprotectedcreateno
reprobeAudioEnginemutationadminadmin onlyno

audioAnalyzer.analyseChunk

  • Kind: mutation — POST /trpc/audioAnalyzer.analyseChunk
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability audio-analyzer, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=audioAnalyzer.analyseChunk on your hub

Input

{ chunk: AudioChunkInputSchema; settings: AudioAnalysisSettingsSchema }

Output

AudioAnalysisResultSchema | null

Shapes: AudioChunkInputSchema · AudioAnalysisSettingsSchema · AudioAnalysisResultSchema

audioAnalyzer.classify

  • Kind: query — GET /trpc/audioAnalyzer.classify
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability audio-analyzer, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=audioAnalyzer.classify on your hub

Input

AudioChunkInputSchema

Output

AudioClassificationResultSchema

Shapes: AudioChunkInputSchema · AudioClassificationResultSchema

audioAnalyzer.attachDevice

  • Kind: mutation — POST /trpc/audioAnalyzer.attachDevice
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability audio-analyzer, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=audioAnalyzer.attachDevice on your hub

Input

AudioAttachDeviceInputSchema

Output

AudioAttachDeviceResultSchema

Shapes: AudioAttachDeviceInputSchema · AudioAttachDeviceResultSchema

audioAnalyzer.detachDevice

  • Kind: mutation — POST /trpc/audioAnalyzer.detachDevice
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability audio-analyzer, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=audioAnalyzer.detachDevice on your hub

Input

{ deviceId: number }

Output

AudioDetachDeviceResultSchema

Shapes: AudioDetachDeviceResultSchema

audioAnalyzer.isReady

  • Kind: query — GET /trpc/audioAnalyzer.isReady
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability audio-analyzer, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=audioAnalyzer.isReady on your hub

Input

void

Output

boolean

audioAnalyzer.dispose

  • Kind: mutation — POST /trpc/audioAnalyzer.dispose
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability audio-analyzer, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=audioAnalyzer.dispose on your hub

Input

void

Output

void

audioAnalyzer.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.reprobeAudioEngine on your hub

Input

void

Output

{ backend: string }