#Where do I put scripts?

1 messages · Page 1 of 1 (latest)

bleak raptor
#

I want to make a python script that takes a youtube url and speeds it up using audacity, but I don't know where to start. Where do I put my python script?

bleak raptor
oblique bone
bleak raptor
#

huh when I tried running it before it didn't work but now it does

#

but how do I work from pipe_test.py?

#

it's too many functions

oblique bone
#

Well, congratulations! You have gotten further that I have. No one ever said scripting was easy. 😀 A little bit xxx I mean a lot of elbow grease should do the trick!

bleak raptor
#

@oblique bone Sorry to bother you again but I can't quite figure out how to use the ChangeSpeed: says that the default value is 0? I don't understand the syntax for the function. If you don't know either, could you point me to someone who might?

#

like, am I supposed to enter 20 for 1.2x the original speed? and even then, it doesn't seem to be doing anything.

oblique bone
sterile pollen
#

You are going to find scripting Audacity with Python very difficult if you don't know how to use Python.
If you are familiar with programming in some other language, then you may be able to use that instead of Python. The main requirement is that the language must support "Named Pipes". Some languages that I know of that support Named Pipes:

  • Python
  • Bash
  • Powershell
  • Perl
  • C / C++
  • Rust
  • PHP
  • JavaScript
bleak raptor
#

but from what I can tell, import file doesn't take an optional argument for which file to open so you need to manually select it (which is good since that would be a security risk but it also makes my code really inconvenient)