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

AssertionError #42

Closed
renanrox opened this issue Feb 1, 2023 · 9 comments
Closed

AssertionError #42

renanrox opened this issue Feb 1, 2023 · 9 comments

Comments

@renanrox
Copy link

renanrox commented Feb 1, 2023

Hi
i'm using this configuration since oct22:

speech = SpeechToFileService(voice="pt-BR-AntonioNeural", audio_format=AudioFormat(FileFormat.MP3, quality=1))

but today this error make the system stop

File "C:\Users\XX\AppData\Local\Programs\Python\Python310\lib\site-packages\aspeak\api\api.py", line 162, in init
super().init(locale, voice, audio_format, None)
File "C:\Users\XX\AppData\Local\Programs\Python\Python310\lib\site-packages\aspeak\api\api.py", line 43, in init
self._config()
File "C:\Users\XX\AppData\Local\Programs\Python\Python310\lib\site-packages\aspeak\api\api.py", line 51, in _config
assert token is not None
AssertionError

can u help me?

@zhang00lei
Copy link

I had the same problem today

@kxxt
Copy link
Owner

kxxt commented Feb 2, 2023

I will publish a release later to solve this issue. This time I will rewrite aspeak in rust and remove all Microsoft proprietary components.

A python interface backed by PyO3 will land after the rust version of aspeak is considered stable.

@kxxt
Copy link
Owner

kxxt commented Feb 2, 2023

The work on a rust re-implementation of aspeak has begun at https://github.com/kxxt/aspeak/tree/rs.

Of course, I will still accept PRs that make the python implementation of aspeak work again.

@renanrox
Copy link
Author

renanrox commented Feb 3, 2023

i dont have enough skill to solve this issue, so i just can wait to the new releases, and ppray for another high skilled developer to solve this issue .

thx in advance for the hard work

@flt6
Copy link
Contributor

flt6 commented Feb 3, 2023

This is because speech-to-text page removed token. I will pull a new request to solve this later. Anyway, you can always use it with mytts(now in alt-impl branch)

flt6 added a commit to flt6/aspeak that referenced this issue Feb 3, 2023
@kxxt
Copy link
Owner

kxxt commented Feb 3, 2023

Fixed in v3.2.0 thanks to @flt6.

@kxxt kxxt closed this as completed Feb 3, 2023
@kxxt kxxt pinned this issue Feb 3, 2023
@kxxt
Copy link
Owner

kxxt commented Feb 3, 2023

I have published an experimental preview release of the rust version of aspeak. Feel free to try it out. Mind that it still has bugs and misses some features.

https://github.com/kxxt/aspeak/releases/tag/v4.0.0-alpha.2
https://crates.io/crates/aspeak

Note that python is no longer required when using rust aspeak.
The total size of the new aspeak executable is under 5.0MB, which is very tiny compared to the old python package plus its dependencies.
Just put the binary file in a folder that is in your PATH variable and then execute aspeak in your terminal.

@Dabbba
Copy link

Dabbba commented Feb 5, 2023

I have published an experimental preview release of the rust version of aspeak. Feel free to try it out. Mind that it still has bugs and misses some features.

https://github.com/kxxt/aspeak/releases/tag/v4.0.0-alpha1 https://crates.io/crates/aspeak

Note that python is no longer required when using rust aspeak. The total size of the new aspeak executable is under 4.0MB, which is very tiny compared to the old python package plus its dependencies. Just put the binary file in a folder that is in your PATH variable and then execute aspeak in your terminal.

Thanks for the new version! But... How to install version v4.0.0-alpha1?

@kxxt
Copy link
Owner

kxxt commented Feb 6, 2023

Thanks for the new version! But... How to install version v4.0.0-alpha1?

@Dabbba For now you can download it in github releases: https://github.com/kxxt/aspeak/releases/tag/v4.0.0-alpha.2
Only Windows and Linux builds are available now. Later I will setup CI to support most platforms (MacOS for example).

When the work on python binding is done, 4.0 will be available on PyPI again.

@kxxt kxxt unpinned this issue Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants