Skip to content

Commit 6fbc3cd

Browse files
committed
fix: バージョン番号を0.2.0から0.2.1に更新し、READMEを修正
1 parent 47cb500 commit 6fbc3cd

4 files changed

Lines changed: 194 additions & 70 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "0.2.0"
6+
version = "0.2.1"
77
authors = ["nusu-github"]
88
edition = "2021"
99
license = "MIT OR Apache-2.0"

README.md

Lines changed: 9 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# cevio-ai
22

3-
CeVIO AIの非公式Rustバインディング
3+
CeVIO AI の非公式 Rust バインディング
44

55
## 使用方法
66

77
`Cargo.toml`に以下を追加してください:
88

99
```toml
1010
[dependencies]
11-
cevio-ai = { git = "https://github.com/nusu-github/cevio-rs2" }
11+
cevio-ai = { version = "0.2.1" }
1212
```
1313

1414
### 基本的な使用例
@@ -53,76 +53,16 @@ fn main() -> Result<()> {
5353
}
5454
```
5555

56-
### 設定を使った初期化
57-
58-
```rust
59-
use cevio_ai::*;
60-
61-
fn main() -> Result<()> {
62-
let config = CevioConfigBuilder::default()
63-
.start_host(true) // 自動起動
64-
.initial_cast("さとうささら")
65-
.initial_volume(Volume::new(80)?)
66-
.initial_speed(Speed::new(60)?)
67-
.build()?;
68-
69-
let cevio = CevioAI::with_config(config)?;
70-
71-
// 既に設定済みなのですぐに使用可能
72-
let state = cevio.speak("こんにちは")?;
73-
state.wait()?;
74-
Ok(())
75-
}
76-
```
77-
78-
### プリセットを使用した音声設定
79-
80-
```rust
81-
use cevio_ai::*;
82-
83-
fn main() -> Result<()> {
84-
let cevio = CevioAI::new()?;
85-
cevio.start(false)?;
86-
87-
// エネルギッシュなプリセットを適用
88-
let cast = CastBuilder::default()
89-
.cast("さとうささら")
90-
.from_preset(VoicePreset::Energetic)
91-
.build()?;
92-
93-
cevio.apply_cast(&cast)?;
94-
95-
// 利用可能なプリセット:
96-
// - Normal: 標準的な設定
97-
// - Fast: 早口
98-
// - Slow: ゆっくり
99-
// - HighPitch: 高い声
100-
// - LowPitch: 低い声
101-
// - Energetic: 元気な声
102-
// - Calm: 落ち着いた声
103-
104-
Ok(())
105-
}
106-
```
107-
10856
## API ドキュメント
10957

110-
詳細なAPIドキュメントについては、プロジェクトディレクトリで`cargo doc --open`を実行してください。
58+
詳細な API ドキュメントについては、プロジェクトディレクトリで`cargo doc --open`を実行してください。
11159

11260
## アーキテクチャ
11361

114-
本ライブラリは2つのクレートで構成されています:
115-
116-
- **`cevio-ai-sys`**: 低レベルFFIバインディング(自動生成)
117-
- **`cevio-ai`**: 高レベル安全API
118-
119-
## 依存クレート
62+
本ライブラリは 2 つのクレートで構成されています:
12063

121-
- `bounded-integer`: 型安全な範囲制限付き整数
122-
- `derive_builder`: Builderパターンの自動生成
123-
- `parking_lot`: 効率的な同期プリミティブ
124-
- `thiserror`: エラー型の生成
125-
- `windows`: Windows バインディング
64+
- **`cevio-ai-sys`**: 低レベル FFI バインディング(自動生成)
65+
- **`cevio-ai`**: 高レベル安全 API
12666

12767
## ライセンス
12868

@@ -142,12 +82,12 @@ fn main() -> Result<()> {
14282

14383
## 免責事項
14484

145-
- 本ライブラリーは、[CeVIOプロジェクト](https://cevio.jp/)様並びに[テクノスピーチ社](https://www.techno-speech.com/)
85+
- 本ライブラリーは、[CeVIO プロジェクト](https://cevio.jp/)様並びに[テクノスピーチ社](https://www.techno-speech.com/)
14686
様、その他関係者様とは一切関係がありません。
14787
- 「CeVIO」、「さとうささら」は株式会社フロンティアワークスの登録商標です。
14888

14989
## 注意事項
15090

151-
CeVIO AIの使用にあたっては、CeVIO AIの利用規約を遵守してください。本ライブラリを使用して生成されたコンテンツの利用に関しては、ユーザー自身の責任において行ってください。
91+
CeVIO AI の使用にあたっては、CeVIO AI の利用規約を遵守してください。本ライブラリを使用して生成されたコンテンツの利用に関しては、ユーザー自身の責任において行ってください。
15292

153-
CeVIO AIの詳細な使用方法や最新の情報については、上記の公式サイトやCOMインターフェースのドキュメントを参照してください
93+
CeVIO AI の詳細な使用方法や最新の情報については、上記の公式サイトや COM インターフェースのドキュメントを参照してください

crates/cevio-ai-sys/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# cevio-ai-sys
2+
3+
CeVIO AI の低レベル FFI バインディング
4+
5+
このクレートは `windows-bindgen` を使用して自動生成された、CeVIO AI の COM インターフェースへの生の Rust バインディングを提供します。
6+
7+
**注意**: このクレートは直接使用することを意図していません。代わりに [`cevio-ai`](https://crates.io/crates/cevio-ai) クレートを使用してください。これは安全で使いやすい高レベル API を提供します。
8+
9+
## 使用方法(非推奨)
10+
11+
通常は直接使用せず、`cevio-ai` クレートを使用してください:
12+
13+
```toml
14+
[dependencies]
15+
cevio-ai = { version = "0.2.0" }
16+
```
17+
18+
どうしても低レベル API が必要な場合:
19+
20+
```toml
21+
[dependencies]
22+
cevio-ai-sys = { version = "0.2.0" }
23+
```
24+
25+
## 生成について
26+
27+
このクレートのバインディングは以下から自動生成されます:
28+
29+
- `.windows/winmd/CeVIO.Talk.RemoteService2.winmd`
30+
- `windows-bindgen` ツール
31+
32+
## ライセンス
33+
34+
次のいずれかのライセンス:
35+
36+
- [Apache License, Version 2.0](https://github.com/nusu-github/cevio-rs2/blob/master/LICENSE-APACHE)
37+
- [MIT license](https://github.com/nusu-github/cevio-rs2/blob/master/LICENSE-MIT)
38+
39+
## 参考リンク
40+
41+
- [CeVIO AI 公式サイト](https://cevio.jp/)
42+
- [CeVIO AI ユーザーズガイド COMコンポーネントとして利用](https://cevio.jp/guide/cevio_ai/interface/com/)
43+
44+
## 免責事項
45+
46+
- 本ライブラリーは、[CeVIO プロジェクト](https://cevio.jp/)様並びに[テクノスピーチ社](https://www.techno-speech.com/)
47+
様、その他関係者様とは一切関係がありません。
48+
- 「CeVIO」、「さとうささら」は株式会社フロンティアワークスの登録商標です。
49+
50+
## 注意事項
51+
52+
CeVIO AI の使用にあたっては、CeVIO AI の利用規約を遵守してください。本ライブラリを使用して生成されたコンテンツの利用に関しては、ユーザー自身の責任において行ってください。
53+
54+
CeVIO AI の詳細な使用方法や最新の情報については、上記の公式サイトや COM インターフェースのドキュメントを参照してください。

crates/cevio-ai/README.md

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# cevio-ai
2+
3+
CeVIO AI の非公式 Rust バインディング
4+
5+
## 使用方法
6+
7+
`Cargo.toml`に以下を追加してください:
8+
9+
```toml
10+
[dependencies]
11+
cevio-ai = { version = "0.2.0" }
12+
```
13+
14+
### 基本的な使用例
15+
16+
```rust
17+
use cevio_ai::*;
18+
19+
fn main() -> Result<()> {
20+
// CeVIOインスタンスを作成
21+
let cevio = CevioAI::new()?;
22+
23+
// CeVIO AIを起動
24+
cevio.start(false)?;
25+
26+
// 音声設定(型安全なパラメータ)
27+
let cast = CastBuilder::default()
28+
.cast("さとうささら")
29+
.volume(Volume::new(100).unwrap())
30+
.speed(Speed::new(50).unwrap())
31+
.tone(Tone::new(50).unwrap())
32+
.build()?;
33+
34+
cevio.apply_cast(&cast)?;
35+
36+
// 音声合成と再生
37+
let state = cevio.speak("こんにちは")?;
38+
state.wait()?;
39+
40+
// 音素データを取得
41+
let phonemes = cevio.phonemes("はじめまして")?;
42+
for phoneme in &phonemes {
43+
println!("{}: {:.2}s - {:.2}s",
44+
phoneme.phoneme(), phoneme.start_time(), phoneme.end_time());
45+
}
46+
47+
// WAVファイルに出力
48+
cevio.output_wave_to_file("さようなら", "output.wav")?;
49+
50+
// 終了
51+
cevio.close(CloseMode::Interactive)?;
52+
Ok(())
53+
}
54+
```
55+
56+
### 設定を使った初期化
57+
58+
```rust
59+
use cevio_ai::*;
60+
61+
fn main() -> Result<()> {
62+
let config = CevioConfigBuilder::default()
63+
.start_host(true) // 自動起動
64+
.initial_cast("さとうささら")
65+
.initial_volume(Volume::new(80)?)
66+
.initial_speed(Speed::new(60)?)
67+
.build()?;
68+
69+
let cevio = CevioAI::with_config(config)?;
70+
71+
// 既に設定済みなのですぐに使用可能
72+
let state = cevio.speak("こんにちは")?;
73+
state.wait()?;
74+
Ok(())
75+
}
76+
```
77+
78+
### プリセットを使用した音声設定
79+
80+
```rust
81+
use cevio_ai::*;
82+
83+
fn main() -> Result<()> {
84+
let cevio = CevioAI::new()?;
85+
cevio.start(false)?;
86+
87+
// エネルギッシュなプリセットを適用
88+
let cast = CastBuilder::default()
89+
.cast("さとうささら")
90+
.from_preset(VoicePreset::Energetic)
91+
.build()?;
92+
93+
cevio.apply_cast(&cast)?;
94+
95+
// 利用可能なプリセット:
96+
// - Normal: 標準的な設定
97+
// - Fast: 早口
98+
// - Slow: ゆっくり
99+
// - HighPitch: 高い声
100+
// - LowPitch: 低い声
101+
// - Energetic: 元気な声
102+
// - Calm: 落ち着いた声
103+
104+
Ok(())
105+
}
106+
```
107+
108+
## ライセンス
109+
110+
次のいずれかのライセンス:
111+
112+
- [Apache License, Version 2.0](https://github.com/nusu-github/cevio-rs2/blob/master/LICENSE-APACHE)
113+
- [MIT license](https://github.com/nusu-github/cevio-rs2/blob/master/LICENSE-MIT)
114+
115+
## 参考リンク
116+
117+
- [CeVIO AI 公式サイト](https://cevio.jp/)
118+
- [CeVIO AI ユーザーズガイド COMコンポーネントとして利用](https://cevio.jp/guide/cevio_ai/interface/com/)
119+
120+
## 免責事項
121+
122+
- 本ライブラリーは、[CeVIO プロジェクト](https://cevio.jp/)様並びに[テクノスピーチ社](https://www.techno-speech.com/)
123+
様、その他関係者様とは一切関係がありません。
124+
- 「CeVIO」、「さとうささら」は株式会社フロンティアワークスの登録商標です。
125+
126+
## 注意事項
127+
128+
CeVIO AI の使用にあたっては、CeVIO AI の利用規約を遵守してください。本ライブラリを使用して生成されたコンテンツの利用に関しては、ユーザー自身の責任において行ってください。
129+
130+
CeVIO AI の詳細な使用方法や最新の情報については、上記の公式サイトや COM インターフェースのドキュメントを参照してください。

0 commit comments

Comments
 (0)