web-audio-recorder-ts 1.0.5 → 1.0.7
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/README.md +9 -1
- package/dist/encoders/OggVorbisEncoder.d.ts +0 -5
- package/dist/index.cjs.js +282 -286
- package/dist/index.esm.js +282 -285
- package/dist/index.umd.js +282 -286
- package/dist/utils/encoderLoader.d.ts +8 -8
- package/package.json +2 -2
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Utility functions for
|
|
2
|
+
* Utility functions for loading encoder files
|
|
3
|
+
*
|
|
4
|
+
* STANDARD: Files should be placed in `public/encoders/`
|
|
3
5
|
*/
|
|
4
6
|
/**
|
|
5
|
-
* Get the base URL for encoder files
|
|
6
|
-
*
|
|
7
|
+
* Get the default base URL for encoder files
|
|
8
|
+
* Defaults to '/encoders' (relative to domain root)
|
|
7
9
|
*/
|
|
8
10
|
export declare function getEncoderBaseUrl(): string;
|
|
9
11
|
/**
|
|
10
12
|
* Get the full URL for an encoder script file
|
|
11
|
-
* @param filename - Name of the encoder file (e.g., 'OggVorbisEncoder.min.js')
|
|
12
|
-
* @param customBaseUrl - Optional custom base URL (overrides auto-detection)
|
|
13
13
|
*/
|
|
14
14
|
export declare function getEncoderScriptUrl(filename: string, customBaseUrl?: string): string;
|
|
15
15
|
/**
|
|
16
16
|
* Configure encoder memory initializer paths
|
|
17
|
-
*
|
|
17
|
+
* Critical for OGG/MP3 Emscripten modules
|
|
18
18
|
*/
|
|
19
19
|
export declare function configureEncoderPaths(baseUrl?: string): void;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Find and load encoder script
|
|
22
|
+
* Simplified: ONLY looks in standard locations or provided path
|
|
23
23
|
*/
|
|
24
24
|
export declare function findEncoderPath(filename: string): Promise<string | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-audio-recorder-ts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript port of web-audio-recorder-js with full type support for WAV, OGG Vorbis, and MP3 audio recording",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -83,4 +83,4 @@
|
|
|
83
83
|
"typescript": "^5.7.2",
|
|
84
84
|
"vite": "^6.0.3"
|
|
85
85
|
}
|
|
86
|
-
}
|
|
86
|
+
}
|