ailia-speech 1.3.2.1__tar.gz → 1.3.2.2__tar.gz

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.

Potentially problematic release.


This version of ailia-speech might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ailia_speech
3
- Version: 1.3.2.1
3
+ Version: 1.3.2.2
4
4
  Summary: ailia AI Speech
5
5
  Home-page: https://ailia.jp/
6
6
  Author: ax Inc.
@@ -85,7 +85,7 @@ import urllib.request
85
85
  input_file_path = "demo.wav"
86
86
  if not os.path.exists(input_file_path):
87
87
  urllib.request.urlretrieve(
88
- "https://github.com/axinc-ai/ailia-models/raw/refs/heads/master/audio_processing/whisper/demo.wa",
88
+ "https://github.com/axinc-ai/ailia-models/raw/refs/heads/master/audio_processing/whisper/demo.wav",
89
89
  "demo.wav"
90
90
  )
91
91
  audio_waveform, sampling_rate = librosa.load(input_file_path, mono = True)
@@ -72,7 +72,7 @@ import urllib.request
72
72
  input_file_path = "demo.wav"
73
73
  if not os.path.exists(input_file_path):
74
74
  urllib.request.urlretrieve(
75
- "https://github.com/axinc-ai/ailia-models/raw/refs/heads/master/audio_processing/whisper/demo.wa",
75
+ "https://github.com/axinc-ai/ailia-models/raw/refs/heads/master/audio_processing/whisper/demo.wav",
76
76
  "demo.wav"
77
77
  )
78
78
  audio_waveform, sampling_rate = librosa.load(input_file_path, mono = True)
@@ -324,12 +324,15 @@ class AiliaSpeechModel:
324
324
  if status != AILIA_SPEECH_STATUS_SUCCESS:
325
325
  raise AiliaSpeechError(f"ailia speech error", status)
326
326
 
327
- def _string_buffer(self, path):
327
+ def _string_buffer_aw(self, path):
328
328
  if sys.platform == "win32":
329
329
  return ctypes.create_unicode_buffer(path)
330
330
  else:
331
331
  return ctypes.create_string_buffer(path.encode("utf-8"))
332
332
 
333
+ def _string_buffer(self, path):
334
+ return ctypes.create_string_buffer(path.encode("utf-8"))
335
+
333
336
  def _create_callback(self):
334
337
  callback = AILIASpeechApiCallback()
335
338
  callback.ailiaAudioGetFrameLen = AILIA_SPEECH_USER_API_AILIA_AUDIO_GET_FRAME_LEN(("ailiaAudioGetFrameLen", ailia.audio.audio_core.dll))
@@ -453,8 +456,8 @@ class Whisper(AiliaSpeechModel):
453
456
  check_and_download_file(model_path + "silero_vad.onnx", REMOTE_PATH)
454
457
 
455
458
  def _open_model(self, encoder, decoder, model_type):
456
- p1 = self._string_buffer(encoder)
457
- p2 = self._string_buffer(decoder)
459
+ p1 = self._string_buffer_aw(encoder)
460
+ p2 = self._string_buffer_aw(decoder)
458
461
 
459
462
  if sys.platform == "win32":
460
463
  self._check(dll.ailiaSpeechOpenModelFileW(self._instance, p1, p2, model_type))
@@ -462,7 +465,7 @@ class Whisper(AiliaSpeechModel):
462
465
  self._check(dll.ailiaSpeechOpenModelFileA(self._instance, p1, p2, model_type))
463
466
 
464
467
  def _open_vad(self, vad, vad_type):
465
- p1 = self._string_buffer(vad)
468
+ p1 = self._string_buffer_aw(vad)
466
469
 
467
470
  if sys.platform == "win32":
468
471
  self._check(dll.ailiaSpeechOpenVadFileW(self._instance, p1, vad_type))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ailia_speech
3
- Version: 1.3.2.1
3
+ Version: 1.3.2.2
4
4
  Summary: ailia AI Speech
5
5
  Home-page: https://ailia.jp/
6
6
  Author: ax Inc.
@@ -85,7 +85,7 @@ import urllib.request
85
85
  input_file_path = "demo.wav"
86
86
  if not os.path.exists(input_file_path):
87
87
  urllib.request.urlretrieve(
88
- "https://github.com/axinc-ai/ailia-models/raw/refs/heads/master/audio_processing/whisper/demo.wa",
88
+ "https://github.com/axinc-ai/ailia-models/raw/refs/heads/master/audio_processing/whisper/demo.wav",
89
89
  "demo.wav"
90
90
  )
91
91
  audio_waveform, sampling_rate = librosa.load(input_file_path, mono = True)
@@ -54,7 +54,7 @@ if __name__ == "__main__":
54
54
  setup(
55
55
  name="ailia_speech",
56
56
  scripts=scripts,
57
- version="1.3.2.1",
57
+ version="1.3.2.2",
58
58
  install_requires=[
59
59
  "ailia",
60
60
  "ailia_tokenizer",
File without changes