@vkontakte/calls-sdk 2.8.5-dev.226a9d96.0 → 2.8.5-dev.2cb03422.0

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.
package/CallsSDK.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * CallsSDK
3
3
  */
4
4
  import type { IEffect, VideoEffects } from '@vkontakte/calls-video-effects';
5
+ import type { EffectVoiceChange } from '@vkontakte/calls-audio-effects';
5
6
  import type * as Vmoji from '@vkontakte/calls-vmoji';
6
7
  import BaseLogger from './abstract/BaseLogger';
7
8
  import { AddParticipantParams } from './abstract/BaseSignaling';
@@ -62,6 +63,7 @@ import { ArrayDequeue } from './utils/ArrayDequeue';
62
63
  import { ApiExternal } from './default/ApiExternal';
63
64
  import AuthData from './static/AuthData';
64
65
  import { VmojiError } from './types/Vmoji';
66
+ import { VolumeDetector } from './classes/VolumeDetector';
65
67
  /**
66
68
  * Информация о текущем браузере
67
69
  */
@@ -194,16 +196,22 @@ export declare const utils: {
194
196
  };
195
197
  export declare function setLogger(logger: BaseLogger): void;
196
198
  /**
197
- * Устанавливает библиотеку эффектов
199
+ * Устанавливает библиотеку видео эффектов
198
200
  *
199
201
  * @param effects Экземпляр класса `VideoEffects` из `@vkontakte/calls-video-effects`
200
202
  */
201
203
  export declare function setVideoEffects(effects: VideoEffects): void;
204
+ /**
205
+ * Устанавливает библиотеку аудио эффектов
206
+ *
207
+ * @param effects Экземпляр класса `EffectVoiceChange` из `@vkontakte/calls-audio-effects`
208
+ */
209
+ export declare function setAudioEffects(effects: EffectVoiceChange): void;
202
210
  /**
203
211
  * Устанавливает библиотеку вимоджи
204
212
  *
205
213
  * @param vmoji Экземпляр класса `Vmoji` из `@vkontakte/calls-vmoji`
206
- * @param sdk Экземпляр модуля `@vkontakte/calls-vmoji`, нужен для проброски дебаг сообщений
214
+ * @param sdk Экземпляр модуля `@vkontakte/calls-sdk`, нужен для проброски дебаг сообщений
207
215
  */
208
216
  export declare function setVmoji(vmoji: typeof Vmoji, sdk?: Parameters<typeof Vmoji.setSDK>[0] | null, renderingOptions?: Partial<Vmoji.RenderingOptions>, protocolVersion?: Vmoji.AnimojiVersion): void;
209
217
  /**
@@ -610,6 +618,12 @@ export declare function debugMessage(type: DebugMessageType, ...args: any[]): vo
610
618
  * @param effect
611
619
  */
612
620
  export declare function changeVideoEffect(effect: IEffect | null): Promise<void>;
621
+ /**
622
+ * Эффект локального аудио
623
+ *
624
+ * @param effect
625
+ */
626
+ export declare function changeAudioEffect(effects: string[], isPreset?: boolean): Promise<void>;
613
627
  /**
614
628
  * Позволяет установить кастомный стрим для аудио
615
629
  *
@@ -706,4 +720,4 @@ export declare function sendTestCommand(name: string, params?: any): void;
706
720
  */
707
721
  export declare function version(): string;
708
722
  export type { AddParticipantParams, AudienceModeHandsResponse, BrowserName, CompositeUserId, ConversationData, ConversationParams, ConversationResponse, ExternalId, ExternalParticipant, ExternalParticipantListChunk, ExternalParticipantListMarker, ExternalParticipantListMarkers as ExternalParticipantMarkers, ExternalParticipantId, GetParticipantsSignalingResponse, GetRoomsSignalingResponse, HangupReasonData, IApiEnv, IAsrStartParams, IAsrStopParams, IAsrData, IceServer, JSONArray, JSONObject, JSONType, Layout, MediaModifiers, MediaSettings, MuteStates, OkUserId, ParamsObject, ParticipantId, ParticipantLayout, ParticipantListMarkers, ParticipantListType, ParticipantPriority, ParticipantsStateList, ParticipantStateMapped, ParticipantStreamDescription, ParticipantListChunkParameters, ParticipantListMarker, RequestKeyFrame, Rooms, IGetParticipantsParameters, ScreenCaptureSettings, SignalingMessage, StatResult, StopStream, WaitingHallResponse, IMovieMetaData, IVideoDimentions, IFeedbackExternal, ISharedMovieInfo, ISharedMovieStoppedInfo, ISharedMovieState, ISharedMovieStateResponse, IAddMovieParams, IOnRemoteMovieData, IMoviePreview, IRoomId, Room, RoomsUpdate, RoomParticipantUpdate, IUpdateMovieData, IFeaturesPerRole, IMuteParticipantParams, IMuteParticipantInternalParams, IStartStreamData, IStopStreamData, IPublishStreamData, VmojiError, };
709
- export { Api, AuthData, BaseLogger, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, };
723
+ export { Api, AuthData, BaseLogger, CallDirection, CallType, ChatRoomEventType, ConversationOption, DebugMessageType, ExternalIdType, FacingMode, FatalError, HangupReason, HangupType, MediaOption, MediaTrackKind, MediaType, MuteState, ParticipantState, ParticipantStatus, RecordRole, Signaling, SignalingCommandType, SignalingConnectionType, SignalingNotification, UserRole, UserType, TransportTopology, RoomsEventType, ConversationFeature, ArrayDequeue, ApiExternal, VolumeDetector, };