Giter Club home page Giter Club logo

soundrecorder's Introduction

SoundRecorder

Python Scripts to record music

Useful scripts to record music from the audio output (headphones). Can be used to record streamed music. Automatic track seperation by detecting silence at end of track.

Can be used e.g. to record a Deezer playlist.

  • create a Deezer Playlist
  • Apply a copy&paste on the website and save the result in a file (foo.txt)
  • remove the first 30 ( or so) lines, until you only have lines as

Title Artist Album Duration time since added to playlist

e.g.

False Awakening Suite

Dream Theater

Dream Theater

02:42

3 hours ago

The Enemy Inside

Dream Theater

Dream Theater

06:17

3 hours ago

  • apply ./initTrackInfos.py foo.txt this will create foo.pkl and foo_counter.pkl -> foo.pkl consists a list of the tracks and foo_counter.pkl contains the position of the currently recorded file in the list.

  • to record the playlist, start ./record.py foo.pkl and at the moment start the playlist. Don't change the volume but just enjoy the music (or go for a walk).

  • the sound is first stored in current_recording.wav and exported to an mp3 after a moment of silence at the end of the track was recogized. The mp3 (with id3 Tags) is then copied into the ~/Music/Artist/Album Folder (which is created if it didn't exist yet)

  • If you have to stop the recording, just call

./record.py foo.pkl test to see at which point you have to start the playlist again

Reading file Nr. 22 please start playlist at: The Best Of Times (by Dream Theater )

So just call ./record foo.pkl again and start the playlist at this position.

Requirements:

Currently only tested with Ubuntu 12.10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.