@webex/web-media-effects-types 2.20.6 → 2.20.8
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/LICENSE.md +3 -0
- package/README.md +50 -0
- package/package.json +3 -2
package/LICENSE.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Copyright (c) 2024 Cisco Systems, Inc. and/or its affiliated entities.
|
|
2
|
+
|
|
3
|
+
Your use of the AI effects in this library (e.g., noise reduction, virtual background, etc.) are subject to the Cisco End User License Agreement located at: https://www.cisco.com/c/dam/en_us/about/doing_business/legal/eula/cisco_end_user_license_agreement-eng.pdf
|
package/README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# @webex/web-media-effects-types
|
|
2
|
+
|
|
3
|
+
TypeScript definitions for the `@webex/web-media-effects` package.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This package provides TypeScript definitions for the `@webex/web-media-effects` library. It is designed to be used by developers who require only the type definitions without importing the entire `@webex/web-media-effects` library.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
You can install the types package using npm or yarn:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @webex/web-media-effects-types --save-dev
|
|
15
|
+
# or
|
|
16
|
+
yarn add @webex/web-media-effects-types --dev
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
After installation, you can use the types in your TypeScript projects. Here’s an example of how to import and use the types:
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { VirtualBackgroundEffect, NoiseReductionEffect, VirtualBackgroundEffectOptions, NoiseReductionEffectOptions } from '@webex/web-media-effects-types';
|
|
25
|
+
|
|
26
|
+
const virtualBackgroundOptions: VirtualBackgroundEffectOptions = {
|
|
27
|
+
authToken: 'YOUR_AUTH_TOKEN',
|
|
28
|
+
mode: 'BLUR',
|
|
29
|
+
blurStrength: 'STRONG',
|
|
30
|
+
quality: 'LOW'
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const virtualBackgroundEffect = new VirtualBackgroundEffect(virtualBackgroundOptions);
|
|
34
|
+
|
|
35
|
+
const noiseReductionOptions: NoiseReductionEffectOptions = {
|
|
36
|
+
authToken: 'YOUR_AUTH_TOKEN',
|
|
37
|
+
mode: 'WORKLET',
|
|
38
|
+
workletProcessorUrl: 'https://your-worklet-processor-url'
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
const noiseReductionEffect = new NoiseReductionEffect(noiseReductionOptions);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
This project is licensed under the terms of the [SEE LICENSE IN LICENSE.md](./LICENSE.md).
|
|
47
|
+
|
|
48
|
+
## Repository
|
|
49
|
+
|
|
50
|
+
The source code for these types is available at: [GitHub - @webex/web-media-effects](https://github.com/webex/web-media-effects)
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/web-media-effects-types",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.8",
|
|
4
4
|
"description": "TypeScript definitions for @webex/web-media-effects",
|
|
5
5
|
"main": "",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"index.d.ts"
|
|
8
|
+
"index.d.ts",
|
|
9
|
+
"LICENSE.md"
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
12
|
"prepare": "cp ../dist/types/index.d.ts ./index.d.ts"
|