1
1
using System ;
2
2
3
- namespace CeVIOAIProxy . Servers
3
+ namespace FNF . Utility
4
4
{
5
+ /// <summary>
6
+ /// .NET Remotingのためのクラス。(本クラスの内容を変更してしまうと通信できなくなってしまいます)
7
+ /// </summary>
5
8
public class BouyomiChanRemoting : MarshalByRefObject
6
9
{
7
10
public async void AddTalkTask ( string sTalkText )
8
11
{
9
- await CeVIO . SpeakAsync ( sTalkText ) ;
12
+ await CeVIOAIProxy . CeVIO . SpeakAsync ( sTalkText ) ;
10
13
}
11
14
12
15
public async void AddTalkTask ( string sTalkText , int iSpeed , int iVolume , int vType )
13
16
{
14
- await CeVIO . SpeakAsync ( sTalkText ) ;
17
+ await CeVIOAIProxy . CeVIO . SpeakAsync ( sTalkText ) ;
15
18
}
16
19
17
20
public async void AddTalkTask ( string sTalkText , int iSpeed , int iTone , int iVolume , int vType )
18
21
{
19
- await CeVIO . SpeakAsync ( sTalkText ) ;
22
+ await CeVIOAIProxy . CeVIO . SpeakAsync ( sTalkText ) ;
20
23
}
21
24
22
25
public int AddTalkTask2 ( string sTalkText )
23
26
{
24
- throw null ;
27
+ CeVIOAIProxy . CeVIO . SpeakAsync ( sTalkText ) . Wait ( ) ;
28
+ return 0 ;
25
29
}
26
30
27
31
public int AddTalkTask2 ( string sTalkText , int iSpeed , int iTone , int iVolume , int vType )
28
32
{
29
- throw null ;
33
+ CeVIOAIProxy . CeVIO . SpeakAsync ( sTalkText ) . Wait ( ) ;
34
+ return 0 ;
30
35
}
31
36
32
37
public void ClearTalkTasks ( )
@@ -37,9 +42,14 @@ public void SkipTalkTask()
37
42
{
38
43
}
39
44
40
- public int TalkTaskCount { get { throw null ; } }
41
- public int NowTaskId { get { throw null ; } }
42
- public bool NowPlaying { get { throw null ; } }
43
- public bool Pause { get { throw null ; } set { } }
45
+ public int TalkTaskCount => 0 ;
46
+ public int NowTaskId => 0 ;
47
+ public bool NowPlaying => false ;
48
+
49
+ public bool Pause
50
+ {
51
+ get => true ;
52
+ set { }
53
+ }
44
54
}
45
55
}
0 commit comments