From 2022huaweisudani at gmail.com Wed Feb 2 02:00:31 2022 From: 2022huaweisudani at gmail.com (HUAWEI HUAWEI) Date: Wed, 2 Feb 2022 09:00:31 +0200 Subject: [Pythonmac-SIG] Help me using python setup.py bdist In-Reply-To: References: Message-ID: > I'm Mohammed from Sudan, > Diploma in Computer science. > > Sudanese love using : > 1- windows ( 32bit & 64bit ) > 2 - Linux ( Deb, rpm ) > 3- android ( apk ) > 4- iPhone (ios ) > > I design simple python application to enter two numbers and calculate it > > > Help me using python setup.py bdist to export it into one file like : > > python setup . py ( bdist_rpm, bdist_win32bit, bdist_win64, bdist_deb, > bdist_apk, bdist_ios) > -------------- next part -------------- An HTML attachment was scrubbed... URL: From timothyjb310 at gmail.com Sat Feb 19 21:30:24 2022 From: timothyjb310 at gmail.com (timothyjb310 at gmail.com) Date: Sat, 19 Feb 2022 18:30:24 -0800 Subject: [Pythonmac-SIG] AVFAudio.AVSpeechSynthesizer Help Message-ID: <060701d82601$d1b4f5f0$751ee1d0$@gmail.com> Hi all, I am new to the list. I am looking for some help relating to one of the Mac standard libraries that python has bindings for. I need help with the AVSpeechSynthesizer object found in the AVFAudio library. I am working on an open source project called accessible_output2, and have been trying to find a good solution for interfacing with the currently running instance of the built in screen reader Voiceover. Specifically, I am looking to send text to a function, and get speech output from Voiceover using the users existing settings if any. This is a library to help provide screen reader output for people who are blind or visually impaired. I already am using NSSpeechSynthesizer to provide default speech output, so if voiceover is not loaded, NSSpeechSynthesizer is used to provide speech using default voiceover settings. However, I would really like to find a way to either communicate directly with the running instance of Voiceover if any, or to use the users voiceover settings to configure the synthesizer object. I have done a lot of research on this, and think that AVSpeechSynthesizer is what I want, however it does not seem to be working as expected. There is a property in the AVSpeechUtterance classs, which is passed into the AVSpeechSynthesizer.speakUtterance method, called prefersAssistiveTechnologySettings. This setting, based on the documentation, is supposed to pull the users existing Voiceover settings, rate, pitch, voice, etc., and use these to configure the utterance object. However, when I run the below code, all I get is Voiceover speaking with the default settings. No matter what I do, it seems that AVSpeechUtterance just is not picking up my custom user settings for Voiceover. To clarify, I have definitely changed the Voiceover default settings. from AVFoundation import AVSpeechSynthesizer from AVFoundation import AVSpeechUtterance voiceover = AVSpeechSynthesizer.alloc().init() utterance = AVSpeechUtterance.speechUtteranceWithString_("hello world") utterance.setPrefersAssistiveTechnologySettings_(True) voiceover.speakUtterance_(utterance) input() Unfortunately, I do not know swift or ObjectiveC. I have been looking into them, and am trying to put together a test of this code in either language, but not having much luck yet. Since this code runs, I really only have two guesses; either the property is not correctly configured in the python bindings, or I am wondering if I need to specify the Boolean differently here to work with the underlying ObjectiveC framework. Does anyone have an idea on what to do next? If this is not the correct place to ask, can someone point me in the right direction of where I can talk to someone who might know more about this? Here is the AVSpeechSynthesizer documentation: https://developer.apple.com/documentation/avfaudio/avspeechsynthesizer?langu age=objc Thanks, Timothy Breitenfeldt -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertwasserman at me.com Sun Feb 27 15:51:06 2022 From: robertwasserman at me.com (Robert Wasserman) Date: Sun, 27 Feb 2022 15:51:06 -0500 Subject: [Pythonmac-SIG] Hi. I am having difficulty installing NLTK on my Mac (12.02.01). Is there anyone who can help? Message-ID: <34553549-1C22-4E24-AE20-8FD6B077B249@me.com> I?ve been learning pylon on my Mac and and am trying to install NLTK so I can try the examples in the NLTK text. The instructions in NLTK are straightforward and I am able to get Python itself on my computer, but I cannot get ?pip? to work. I would appreciate any help or sources of help. My problem seems to be getting Python to work on the data provided in the NLTK. Thank you in advance for any direction or advice you can provide. Robbie Wasserman robertwaserman at me.com