aqtk 0.1.4-mswin32 → 0.1.5-mswin32

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -29,6 +29,8 @@ gem install aqtk
29
29
  ��AquesTalk��DLL���C���X�g�[������܂�
30
30
 
31
31
  == �g����
32
+ === �ȒP�Ȏg����
33
+
32
34
  $KCODE= 's'
33
35
  require 'rubygems'
34
36
  require 'aqtk'
@@ -51,6 +53,8 @@ gem install aqtk
51
53
  f << AquesTalk.synthe('������肵�����ʂ����ꂾ��I�I')
52
54
  end
53
55
 
56
+ ===�f�t�H���g�̃t�B���^�𖳌��ɂ���
57
+
54
58
  �f�t�H���g�ł�KAKASI�̃t�B���^�[���L���ɂȂ��Ă��܂��B
55
59
 
56
60
  �����ɂ���ꍇ�͈ȉ��̂悤�ɂ��Ă��������B
@@ -62,6 +66,45 @@ gem install aqtk
62
66
 
63
67
  AquesTalk.synthe('������肵�������������ꂾ��', 100, nil)
64
68
 
69
+ === �t�B���^�����삷��
70
+
71
+ �t�B���^�����삷��ꍇ�Afilter���\�b�h�����ƒN���X/���W���[�����`���邾���ł��B
72
+
73
+ �Ⴆ�΁AChaSen���g���ăt�B���^�����삷��ꍇ�A�ȉ��̂悤�ɂȂ�܂��B
74
+
75
+ $KCODE = 's'
76
+ require 'rubygems'
77
+ require 'aqtk'
78
+ require 'jcode'
79
+
80
+ module MyFilter
81
+ def filter(src)
82
+ dest = nil
83
+
84
+ IO.popen("C:\\Program Files\\ChaSen\\chasen -F%a", 'r+') do |io|
85
+ io.puts src
86
+ dest = io.gets
87
+ end
88
+
89
+ return dest.tr('�@-��', '��-��');
90
+ end
91
+
92
+ module_function :filter
93
+ end
94
+
95
+ src = '������肵�����ʂ����ꂾ��'
96
+
97
+ AquesTalk::Da.play_sync(src, 100, MyFilter)
98
+
99
+ begin
100
+ aqtkda = AquesTalk::Da.create(MyFilter)
101
+ aqtkda.play(src)
102
+ sleep 1
103
+ aqtkda.play_sync(src)
104
+ ensure
105
+ aqtkda.release if aqtkda
106
+ end
107
+
65
108
  == ���C�Z���X
66
109
  ���C�Z���X��GPL�ł��B
67
110
 
Binary file
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aqtk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: mswin32
6
6
  authors:
7
7
  - winebarrel
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-14 00:00:00 +09:00
12
+ date: 2009-03-16 00:00:00 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15