Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5243f2e8
Commit
5243f2e8
authored
Feb 16, 2024
by
Shaun Ren
Committed by
Alexandre Julliard
Feb 20, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sapi: Implement ISpeechVoice::Speak.
parent
afac7d7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
tts.c
dlls/sapi/tests/tts.c
+9
-0
tts.c
dlls/sapi/tts.c
+4
-2
No files found.
dlls/sapi/tests/tts.c
View file @
5243f2e8
...
...
@@ -431,6 +431,7 @@ static void test_spvoice(void)
ULONG
stream_num
;
DWORD
regid
;
DWORD
start
,
duration
;
ISpeechVoice
*
speech_voice
;
HRESULT
hr
;
if
(
waveOutGetNumDevs
()
==
0
)
{
...
...
@@ -681,6 +682,14 @@ static void test_spvoice(void)
ok
(
hr
==
S_OK
,
"got %#lx.
\n
"
,
hr
);
ok
(
duration
<
300
,
"took %lu ms.
\n
"
,
duration
);
hr
=
ISpVoice_QueryInterface
(
voice
,
&
IID_ISpeechVoice
,
(
void
**
)
&
speech_voice
);
ok
(
hr
==
S_OK
,
"got %#lx.
\n
"
,
hr
);
hr
=
ISpeechVoice_Speak
(
speech_voice
,
NULL
,
SVSFPurgeBeforeSpeak
,
NULL
);
ok
(
hr
==
S_OK
,
"got %#lx.
\n
"
,
hr
);
ISpeechVoice_Release
(
speech_voice
);
done:
reset_engine_params
(
&
test_engine
);
ISpVoice_Release
(
voice
);
...
...
dlls/sapi/tts.c
View file @
5243f2e8
...
...
@@ -357,9 +357,11 @@ static HRESULT WINAPI speech_voice_get_SynchronousSpeakTimeout(ISpeechVoice *ifa
static
HRESULT
WINAPI
speech_voice_Speak
(
ISpeechVoice
*
iface
,
BSTR
text
,
SpeechVoiceSpeakFlags
flags
,
LONG
*
number
)
{
FIXME
(
"(%p, %s, %#x, %p): stub.
\n
"
,
iface
,
debugstr_w
(
text
),
flags
,
number
);
struct
speech_voice
*
This
=
impl_from_ISpeechVoice
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"(%p, %s, %#x, %p).
\n
"
,
iface
,
debugstr_w
(
text
),
flags
,
number
);
return
ISpVoice_Speak
(
&
This
->
ISpVoice_iface
,
text
,
flags
,
(
ULONG
*
)
number
);
}
static
HRESULT
WINAPI
speech_voice_SpeakStream
(
ISpeechVoice
*
iface
,
ISpeechBaseStream
*
stream
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment