@qvac/decoder-audio 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +6 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -33,6 +33,10 @@ interface DecoderStatus {
33
33
  paused: boolean
34
34
  }
35
35
 
36
+ export interface DecoderOutput {
37
+ outputArray: ArrayBuffer
38
+ }
39
+
36
40
  interface RuntimeStats {
37
41
  decodeTimeMs: number
38
42
  inputBytes: number
@@ -52,7 +56,7 @@ declare class FFmpegDecoder extends BaseInference {
52
56
 
53
57
  load(): Promise<void>
54
58
  unload(): Promise<void>
55
- run(audioStream: AsyncIterable<Buffer>): Promise<QvacResponse>
59
+ run(audioStream: AsyncIterable<Buffer>): Promise<QvacResponse<DecoderOutput>>
56
60
  pause(): Promise<void>
57
61
  unpause(): Promise<void>
58
62
  stop(): Promise<void>
@@ -61,4 +65,4 @@ declare class FFmpegDecoder extends BaseInference {
61
65
  runtimeStats(): RuntimeStats
62
66
  }
63
67
 
64
- export { FFmpegDecoder, RuntimeStats }
68
+ export { FFmpegDecoder, RuntimeStats, DecoderOutput }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qvac/decoder-audio",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Tether",