@danhachuel/thunderbolt 0.3.81 → 0.3.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.3.81",
3
+ "version": "0.3.82",
4
4
  "description": "Thunderbolt — interface local para operação de canais faceless e motor MoneyPrinterTurbo",
5
5
  "license": "MIT",
6
6
  "main": "scripts/cli.mjs",
@@ -149,7 +149,9 @@ def _synthesise_chunk(
149
149
  try:
150
150
  result = synthesizer.speak_ssml_async(_build_ssml(text, voice, rate)).get()
151
151
  finally:
152
- synthesizer.close()
152
+ close = getattr(synthesizer, "close", None)
153
+ if callable(close):
154
+ close()
153
155
  if result.reason != speechsdk.ResultReason.SynthesizingAudioCompleted:
154
156
  details = getattr(
155
157
  getattr(result, "cancellation_details", None), "error_details", ""