echo "deb http://deb.torproject.org/torproject.org xenial main" >> /etc/apt/sources.list
echo "deb-src http://deb.torproject.org/torproject.org xenial main" >> /etc/apt/sources.list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VALID_BILLING_CATEGORIES = set( | |
| [ | |
| "agent-conference", | |
| "answering-machine-detection", | |
| "amazon-polly", | |
| "calls-inbound", | |
| "calls-inbound-local", | |
| "calls-inbound-mobile", | |
| "calls-inbound-tollfree", | |
| "calls-outbound", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def main(input_filename, output_filename): | |
| input_file = open(input_filename, 'rb') | |
| audio_stream = audio.LocalAudioStream(input_file) | |
| print audio_stream.analysis.pyechonest_track.id | |
| bars = audio_stream.analysis.bars | |
| collect = [] | |
| for bar in bars: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def run(self): | |
| try: | |
| self.infile.seek(0) | |
| self.p.stdin.write(self.infile.read()) | |
| except IOError: | |
| pass | |
| self.p.stdin.close() |