open-index/open-npm huggingface dataset:
npm package: @oukek/capacitor-photo
Description: 相册相关插件
Author: charlie
Latest version: 1.0.1

# @oukek/capacitor-photo

相册相关插件

## Install

```bash
npm install @oukek/capacitor-photo
npx cap sync
```

## iOS 权限配置

在 iOS 平台上使用此插件需要在 `Info.plist` 文件中添加以下权限：

```xml
<key>NSPhotoLibraryAddUsageDescription</key>
<string>需要访问您的相册以保存图片</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>需要访问您的相册以保存图片</string>
```

## API

<docgen-index>

* [`saveImageToAlbum(...)`](#saveimagetoalbum)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### saveImageToAlbum(...)

```typescript
saveImageToAlbum(options: { base64Data: string; }) => Promise<{ success: boolean; }>
```

Save base64 image data to photo album

| Param         | Type                                 | Description                  |
| ------------- | ------------------------------------ | ---------------------------- |
| **`options`** | <code>{ base64Data: string; }</code> | The options for saving image |

**Returns:** <code>Promise&lt;{ success: boolean; }&gt;</code>

--------------------

</docgen-api>
npm package: @oukek/capacitor-speech
Description: 语音相关插件
Author: charlie
Latest version: 2.0.0

# @oukek/capacitor-speech

录音和语音识别

## Install

```bash
npm install @oukek/capacitor-speech
npx cap sync
```

## iOS 权限配置

在 iOS 平台上使用此插件需要在 `Info.plist` 文件中添加以下权限：

```xml
	<key>NSSpeechRecognitionUsageDescription</key>
	<string>用于语音识别的权限</string>
	<key>NSMicrophoneUsageDescription</key>
	<string>用于录音的权限</string>
```

## API

<docgen-index>

* [`startRecording()`](#startrecording)
* [`stopRecording()`](#stoprecording)
* [`recognize(...)`](#recognize)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### startRecording()

```typescript
startRecording() => Promise<void>
```

开始录音

--------------------


### stopRecording()

```typescript
stopRecording() => Promise<{ audioBase64: string; }>
```

停止录音

**Returns:** <code>Promise&lt;{ audioBase64: string; }&gt;</code>

--------------------


### recognize(...)

```typescript
recognize(options: { audioBase64: string; locale?: string; }) => Promise<{ text: string; }>
```

识别语音

| Param         | Type                                                   | Description             |
| ------------- | ------------------------------------------------------ | ----------------------- |
| **`options`** | <code>{ audioBase64: string; locale?: string; }</code> | 包含base64编码的音频数据和可选的语言设置 |

**Returns:** <code>Promise&lt;{ text: string; }&gt;</code>

--------------------

</docgen-api>
npm package: @oukek/capacitor-updater
Description: 检测 appstore 更新版本
Author: charlie
Latest version: 1.0.0

# @oukek/capacitor-updater

检测 appstore 更新版本

## Install

```bash
npm install @oukek/capacitor-updater
npx cap sync
```

## API

<docgen-index>

* [`getCurrentVersion()`](#getcurrentversion)
* [`getStoreVersion(...)`](#getstoreversion)
* [`openAppStore(...)`](#openappstore)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### getCurrentVersion()

```typescript
getCurrentVersion() => Promise<{ version: string; build: string; }>
```

获取当前安装的应用版本号

**Returns:** <code>Promise&lt;{ version: string; build: string; }&gt;</code>

--------------------


### getStoreVersion(...)

```typescript
getStoreVersion(options?: { appId?: string | undefined; } | undefined) => Promise<{ version: string; releaseNotes?: string; }>
```

获取 App Store 上的最新版本号

| Param         | Type                             | Description     |
| ------------- | -------------------------------- | --------------- |
| **`options`** | <code>{ appId?: string; }</code> | 可选参数，可以指定 appId |

**Returns:** <code>Promise&lt;{ version: string; releaseNotes?: string; }&gt;</code>

--------------------


### openAppStore(...)

```typescript
openAppStore(options?: { appId?: string | undefined; } | undefined) => Promise<void>
```

跳转到 App Store 的应用下载页面

| Param         | Type                             | Description     |
| ------------- | -------------------------------- | --------------- |
| **`options`** | <code>{ appId?: string; }</code> | 可选参数，可以指定 appId |

--------------------

</docgen-api>