Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: one character bytes, bytearray or integer expected #98

Open
KohnoseLami opened this issue Aug 15, 2023 · 2 comments
Open

TypeError: one character bytes, bytearray or integer expected #98

KohnoseLami opened this issue Aug 15, 2023 · 2 comments
Labels

Comments

@KohnoseLami
Copy link

First of all, thank you for your wonderful project.

I discovered this project when I wanted to run the dll module under Linux, which is only available for Windows 32 bit

The module I am trying to use has title errors.

https://github.com/Na-x4/AquesTalk-python
An error occurred when I ran this module replacing ctypes with your project

Traceback (most recent call last):
  File "/home/ubuntu/aquestalk-server/main.py", line 4, in <module>
    wav = aq.synthe_raw('あ')
  File "/home/ubuntu/aquestalk-server/aquestalk/aquestalk.py", line 118, in synthe_raw
    c_wav, size = self._synthe(koe, speed)
  File "/home/ubuntu/aquestalk-server/aquestalk/aquestalk.py", line 155, in _synthe
    c_wav = self._dll.AquesTalk_Synthe(koe.encode(), speed, ctypes.byref(c_size))
  File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/site-packages/zugbruecke/core/routine_client.py", line 131, in __call__
    return_package = self._call_on_server(packed_args, packed_mempkgs)
  File "/home/ubuntu/.pyenv/versions/3.10.12/lib/python3.10/site-packages/zugbruecke/core/rpc.py", line 74, in call_rpc_server
    raise result
TypeError: one character bytes, bytearray or integer expected

This module does Japanese Text to speech.
When an error occurs from the dll, it returns only an error code and no audio data, so it can run normally, but when you enter the correct input and the dll returns audio data, an error occurs.

@s-m-e
Copy link
Member

s-m-e commented Aug 16, 2023

This line looks a lot like that the code requires Memory Synchronization (memsync) directives.

@s-m-e s-m-e added the question label Aug 16, 2023
@KohnoseLami
Copy link
Author

Thank you. I'm not familiar with native code, so it's a bit more difficult for me, but I'll try to implement it while looking at the documentation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants