Open PasaOpasen opened 4 years ago
@Bob-Thomas , do you know what the issue is, here?
Ah yeah it looks like it is missing the pywin32 dependency. Maybe that causes the install not to complete
Ah yeah it looks like it is missing the pywin32 dependency. Maybe that causes the install not to complete
No, no results
Uhm are you running the lastest pyinstaller and latest soundcard.
Soundcard on pypi doesn't contain the pyinstaller update yet I think.
On Mon, May 25, 2020, 19:24 Demetry Pasсal notifications@github.com wrote:
Ah yeah it looks like it is missing the pywin32 dependency. Maybe that causes the install not to complete
No, no results
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bastibe/SoundCard/issues/92#issuecomment-633660225, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVH7PO4XLQLZBSK57DZ4ATRTKSWNANCNFSM4NIQVOTA .
Soundcard on pypi doesn't contain the pyinstaller update yet I think.
Facepalm. I should have said that right in the beginning! Sorry about that.
Please try running the latest git version, to make SoundCard play nice with pyinstaller.
I just published the current version to PyPi. Please try installing that and see if it fixes your issue.
I have run command
pip install --upgrade soundcard
to upgrade, but there is no results with pyinstaller still.
Also I have some problems with my code now:
def speech_to_text_from_speaker(speaker,time = 200_000,samplerate = 48000, lang = 'ru-RU'):
with speaker.recorder(samplerate=samplerate) as mic:
dt = mic.record(time)
write("tmp.wav",
samplerate,
np.int16(dt * (32767/np.max(np.abs(np.array([dt.min(),dt.max()]))))))
return speech_to_text_from_wav(lang)
where speaker
is the speaker from sc.all_microphones(include_loopback=True)
. So the problem is zero dt array because of very small time of listening. At version 0.3.3 that time was about 1-1.5 sec, now it's less that 0.5 maybe
Please open a new issue for new problems. Let's try ans solve one issue at a time ;-)
Did the error message change with the new version?
Yes, with new version)
So I will use 0.3.3, it's not important so
Also, we forgot to mention that the pyinstaller hook in the latest version of SoundCard only works with pyinstaller 4, which I believe is not released yet, but will be soon.
I'm compiling this file by pyinstaller.
Compile is successful:
But after run .exe file it raises error that there is no directory for soundcard (it's true). This problem exists with anaconda enviroment too (conda 4.8.3)
Version of SoundCard is 0.3.3