Populate waveform data on voice message event
This commit is contained in:
parent
7d9562137e
commit
61730f2f88
5 changed files with 63 additions and 3 deletions
|
@ -18,6 +18,7 @@ export const WORKLET_NAME = "mx-voice-worklet";
|
|||
|
||||
export enum PayloadEvent {
|
||||
Timekeep = "timekeep",
|
||||
AmplitudeMark = "amplitude_mark",
|
||||
}
|
||||
|
||||
export interface IPayload {
|
||||
|
@ -25,5 +26,12 @@ export interface IPayload {
|
|||
}
|
||||
|
||||
export interface ITimingPayload extends IPayload {
|
||||
ev: PayloadEvent.Timekeep;
|
||||
timeSeconds: number;
|
||||
}
|
||||
|
||||
export interface IAmplitudePayload extends IPayload {
|
||||
ev: PayloadEvent.AmplitudeMark;
|
||||
forSecond: number;
|
||||
amplitude: number;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue