Skip to content

Commit

Permalink
Stable version for win 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas committed Dec 16, 2022
1 parent 4d627ca commit 136f279
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# PyClip

_Always able to record already said things_

## What is PyClip
PyClip is a python script that give you nuclear power in voice chat. This has been created in order to be able to "Clip" things like on twitch on my friend's discord.

PyClip is a python script that give you nuclear power in voice chat. This has been created in order to be able to "Clip" things like on twitch on my friend's discord.
To do this after configuration, PyClip will listen and continuously record last 2 minutes of theses channels. If you want to save the last two minutes, you only have to write something in the console app or use the F2 key.

Please use this whisely and do not create too much trouble.

## How to install

If you want to listen to some app such as discord, ... Please read _How to listen to apps_ section.

- Download and install latest version of Python (working on 3.9.6)
- Run Setup.cmd and configure your entries with your wanted label
- To autorun paste the created StartupPyClip.cmd file into the startup directory (Windows+R => shell:startup)
- Run the script with Start.cmd
- Be sure that [ffmpeg](https://ffmpeg.org/) is installed and added to your PATH
- Download and install latest version of Python (working on 3.10)
- Run Setup.cmd and configure your entries with your wanted label
- To autorun paste the created StartupPyClip.cmd file into the startup directory (Windows+R => shell:startup)
- Run the script with Start.cmd

## How to listen to apps

As Pyclip can only record "Microphone", you have to use a virtual cable as the output of the app you want to listen.
To do this follow this procedure:
- Install a virtual cable app (for exemple [this one](https://vb-audio.com/Cable/index.htm))
- Select it at the output of your app
- In the sound configuration pannel choose in the cable output's properties "Listen on this peripheral". Choose your headset.

You should be able to hear your app sound in your headset and select the cable in PyClip configuration


- Install a virtual cable app (for exemple [this one](https://vb-audio.com/Cable/index.htm))
- Select it at the output of your app
- In the sound configuration pannel choose in the cable output's properties "Listen on this peripheral". Choose your headset.

You should be able to hear your app sound in your headset and select the cable in PyClip configuration
5 changes: 3 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ def run(self):
)

filename_2 = os.path.join(FILE_PATH,"record_"+self.nom + "\\" + name)
filename_1 = os.path.join(FILE_PATH,self.pipe.get_to_process())
filename_1 = self.pipe.get_to_process()

filename_final = os.path.join(FILE_PATH,filename_1.replace("_part1",""))
filename_final = filename_1.replace("_part1","")

write(filename_2, fs, record)
time.sleep(2)
file_converter = ConvertFile(filename_2)
file_converter.start()
file_converter.join()
Expand Down

0 comments on commit 136f279

Please sign in to comment.