Skip to content

Commit 89e4f4e

Browse files
Fix freeze when closing and PySpeechService is not setup
1 parent 7155d2d commit 89e4f4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TrackerCouncil.Smz3.Tracking/Services/PyTextToSpeechCommunicator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private SpeechSettings GetSpeechSettings()
9898

9999
public void Say(SpeechRequest request)
100100
{
101-
if (!_isEnabled) return;
101+
if (!_isEnabled || !_pySpeechService.IsSpeechEnabled) return;
102102

103103
if (request.Wait)
104104
{

src/TrackerCouncil.Smz3.Tracking/TrackerCouncil.Smz3.Tracking.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageReference Include="BunLabs.Common" Version="1.0.4" />
1111
<PackageReference Include="MattEqualsCoder.MSURandomizer.Library" Version="3.0.1" />
1212
<PackageReference Include="NAudio.Wasapi" Version="2.2.1" />
13-
<PackageReference Include="PySpeechServiceClient" Version="0.0.31" />
13+
<PackageReference Include="PySpeechServiceClient" Version="0.0.33" />
1414
<PackageReference Include="SharpHook" Version="5.3.8" />
1515
<PackageReference Include="System.Speech" Version="9.0.1" />
1616
<PackageReference Include="Websocket.Client" Version="5.1.2" />

0 commit comments

Comments
 (0)