Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python Speech Engines?
Post: RE: Python Speech Engines?

Just as an update, I found what I was looking for. Pyttsx3 for Text to Speech And pocketsphinx for Speech Recognition I chose these because they meet the following criteria that I need for my pur...
Robo_Pi General Coding Help 2 2,104 Mar-12-2020, 02:46 PM
    Thread: Python Speech Engines?
Post: Python Speech Engines?

What types of speech engine platforms or libraries are available for use with Python? I've been programming in Windows using C# and Microsoft Speech Platform. I really love the Microsoft Speech Engi...
Robo_Pi General Coding Help 2 2,104 Mar-11-2020, 11:53 PM
    Thread: Question about an infinite loop
Post: RE: Question about an infinite loop

Is Python some sort of an interpreter? Do you need to have Python on a machine in order to run a Python program? And does Python then actually read the source code and interpret that into machine in...
Robo_Pi General Coding Help 6 5,213 Mar-04-2018, 08:42 PM
    Thread: Question about an infinite loop
Post: RE: Question about an infinite loop

(Mar-04-2018, 06:24 AM)Gribouillis Wrote: The return value of the main function is not the same thing as the program's exit status (because main() is not special) unless you call sys.exit(main()) as...
Robo_Pi General Coding Help 6 5,213 Mar-04-2018, 05:44 PM
    Thread: Question about an infinite loop
Post: Question about an infinite loop

If I have a program that loops infinitely, should I place a return at the end of that program anyway? Example: def main(): while (True): code block return 0 if __name__ == '__main__'...
Robo_Pi General Coding Help 6 5,213 Mar-04-2018, 04:45 AM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

(Mar-02-2018, 02:33 PM)buran Wrote: concise code is always better and much easier to follow :-) That all depends on who's trying to read it. **smile** I can't imagine any programmer who would fin...
Robo_Pi General Coding Help 21 10,308 Mar-02-2018, 04:01 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

(Mar-02-2018, 07:04 AM)Gribouillis Wrote: At line 39 you're not calling the close method! Use close(). Thanks for catching that! None of my IDE's caught that. And it doesn't seem to have caused any...
Robo_Pi General Coding Help 21 10,308 Mar-02-2018, 02:21 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

(Mar-01-2018, 09:55 PM)Larz60+ Wrote: What I posted earlier is correct. You have changed it. it should read: import AlyshaPass task = AlyshaPass.AlyshaPass()the whenever you are calling a method in...
Robo_Pi General Coding Help 21 10,308 Mar-01-2018, 10:31 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

(Mar-01-2018, 08:11 PM)Gribouillis Wrote: (Mar-01-2018, 07:21 PM)Robo_Pi Wrote: But that won't work. The only thing I can get to run is:It is because you want to access the class AlyshaPass in mod...
Robo_Pi General Coding Help 21 10,308 Mar-01-2018, 08:36 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

@snippsat, I've been trying to change the name of main() and couldn't make it work. I finally realized that I need to also change the name at the bottom if statement too. Now that I've done that I w...
Robo_Pi General Coding Help 21 10,308 Mar-01-2018, 07:21 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

ok here's my upgrade to PEP 8 style conventions: Changes that I've made: Changed namespace folder to lowercase. alysha_pass. (Using underscore here because of lowercase) Removed underscore from the ...
Robo_Pi General Coding Help 21 10,308 Mar-01-2018, 02:25 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

(Mar-01-2018, 08:45 AM)buran Wrote: Also, I strongly advise you to read PEP 8 and follow it, because your current code does not comply with it and is hard to follow and will be difficult for other p...
Robo_Pi General Coding Help 21 10,308 Mar-01-2018, 12:32 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

Sorry. I was trying to give an overview of what I'm trying to do. I can offer a very simplified version for the purpose of asking my questions. Simplified Version: I am creating a separate class...
Robo_Pi General Coding Help 21 10,308 Mar-01-2018, 03:59 AM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

UPDATE: I just restructured the entire program just figuring things out on my own. I'm much happier with the the following classes and methods. So I thought I'd post what I've done just in case anyo...
Robo_Pi General Coding Help 21 10,308 Mar-01-2018, 01:20 AM
    Thread: if else with comparison >= does not work
Post: RE: if else with comparison >= does not work

retun ((h*r) Is that suppose to be return (h*r) There's also one too many parentheses there.
Robo_Pi General Coding Help 7 4,175 Feb-28-2018, 07:49 PM
    Thread: list syntax
Post: RE: list syntax

(Feb-28-2018, 05:22 PM)Mario793 Wrote: Can I ask here what is the difference between z=x[::]and z=x[:]If there is one. Only for the knowledge. Also, as someone learning Python where would I find th...
Robo_Pi General Coding Help 6 3,898 Feb-28-2018, 05:59 PM
    Thread: list syntax
Post: RE: list syntax

you can also replace y = x with y = list(x) This creates a new y list that is an exact copy of list x.
Robo_Pi General Coding Help 6 3,898 Feb-28-2018, 05:20 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: RE: Class Modules, and Passing Variables: Seeking ...

Sorry but the above post got posted by accident before it was finished. And now I can't edit it!!! Sorry about the mistaken early post. I was interrupted and it got posted before I was done. The f...
Robo_Pi General Coding Help 21 10,308 Feb-28-2018, 03:01 PM
    Thread: Class Modules, and Passing Variables: Seeking Advice
Post: Class Modules, and Passing Variables: Seeking Advi...

Class Modules, and Passing Variables: Seeking Advice Introduction Hello, this is my first post and I'm just learning Python so please forgive my ignorance. I'm just starting a huge project that will ...
Robo_Pi General Coding Help 21 10,308 Feb-28-2018, 02:48 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020