Skip to content

Commit c91cb10

Browse files
Merge pull request #42 from mozartec/feat/web-release
chore: update version to 7.1.0 for release
2 parents 9e3bf69 + 5aeb989 commit c91cb10

File tree

4 files changed

+21
-20
lines changed

4 files changed

+21
-20
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ This Microphone API provides the ability to interact with the microphone and rec
1212
</div>
1313

1414
## Platform support
15-
| | iOS | Android | Web |
15+
| | iOS | Android | Web (Preview) |
1616
| ------------ |--------------------- | ------------------ | ------------------ |
1717
| Availability | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
18-
| Encoding | kAudioFormatMPEG4AAC | MPEG_4 / AAC | AAC |
19-
| Extension | .m4a | .m4a | .aac |
18+
| Encoding | kAudioFormatMPEG4AAC (audio/aac) | MPEG_4 / AAC (audio/aac) | audio/webm or audio/mp4 or audio/ogg or audio/wav |
19+
| Extension | .m4a | .m4a | .webm or .mp4 or .ogg or .wav |
2020

2121

2222
## Installation
@@ -140,15 +140,15 @@ Stops recoding session if one is in progress
140140

141141
#### AudioRecording
142142

143-
| Prop | Type | Description | Since |
144-
| ------------------ | ------------------- | --------------------------------------------------------------------------------------------------------------- | ----- |
145-
| **`base64String`** | <code>string</code> | The base64 encoded string representation of the audio file. | 0.0.3 |
146-
| **`dataUrl`** | <code>string</code> | The url starting with 'data:audio/aac;base64,' and the base64 encoded string representation of the audio file. | 0.0.3 |
147-
| **`path`** | <code>string</code> | platform-specific file URL that can be read later using the Filesystem API. | 0.0.3 |
148-
| **`webPath`** | <code>string</code> | webPath returns a path that can be used to set the src attribute of an audio element can be useful for testing. | 0.0.3 |
149-
| **`duration`** | <code>number</code> | recoding duration in milliseconds | 0.0.3 |
150-
| **`format`** | <code>string</code> | file extension (.m4a on mobile, and .aac on web) | 0.0.3 |
151-
| **`mimeType`** | <code>string</code> | file encoding "audio/aac" (kAudioFormatMPEG4AAC for iOS) (MPEG_4 / AAC for Android) (AAC for Web) | 0.0.3 |
143+
| Prop | Type | Description | Since |
144+
| ------------------ | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
145+
| **`base64String`** | <code>string</code> | The base64 encoded string representation of the audio file. | 0.0.3 |
146+
| **`dataUrl`** | <code>string</code> | The url starting with 'data:audio/aac;base64,' and the base64 encoded string representation of the audio file. | 0.0.3 |
147+
| **`path`** | <code>string</code> | platform-specific file URL that can be read later using the Filesystem API. | 0.0.3 |
148+
| **`webPath`** | <code>string</code> | webPath returns a path that can be used to set the src attribute of an audio element can be useful for testing. | 0.0.3 |
149+
| **`duration`** | <code>number</code> | recoding duration in milliseconds | 0.0.3 |
150+
| **`format`** | <code>string</code> | file extension: ".m4a" for (iOS and Android) and ".webm" \| ".mp4" \| ".ogg" \| ".wav" for Web based on compatibility | 0.0.3 |
151+
| **`mimeType`** | <code>string</code> | file encoding: "audio/aac" for (iOS and Android) and "audio/webm \| "audio/mp4" \| "audio/ogg" \| "audio/wav" for Web based on compatibility | 0.0.3 |
152152

153153

154154
### Type Aliases

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mozartec/capacitor-microphone",
3-
"version": "7.1.0-beta.1",
3+
"version": "7.1.0",
44
"description": "This Microphone API provides the ability to interact with the microphone and record Audio",
55
"main": "dist/plugin.cjs.js",
66
"module": "dist/esm/index.js",

src/definitions.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,18 @@ export interface AudioRecording {
6767
duration: number;
6868

6969
/**
70-
* file extension (.m4a on mobile, and .aac on web)
70+
* file extension:
71+
* ".m4a" for (iOS and Android) and
72+
* ".webm" | ".mp4" | ".ogg" | ".wav" for Web based on compatibility
7173
*
7274
* @since 0.0.3
7375
*/
7476
format?: string;
7577

7678
/**
77-
* file encoding "audio/aac"
78-
* (kAudioFormatMPEG4AAC for iOS)
79-
* (MPEG_4 / AAC for Android)
80-
* (AAC for Web)
79+
* file encoding:
80+
* "audio/aac" for (iOS and Android) and
81+
* "audio/webm | "audio/mp4" | "audio/ogg" | "audio/wav" for Web based on compatibility
8182
*
8283
* @since 0.0.3
8384
*/

0 commit comments

Comments
 (0)