Find Jobs
Hire Freelancers

Python program that duplicate sound

$30-250 USD

Đã đóng
Đã đăng vào 9 tháng trước

$30-250 USD

Thanh toán khi bàn giao
Hi i have a python program that duplicate the sound under each other with choosen number inside the code, and works by running infinitly (playing the sound) and duplicate the sound at the same time, so every time it played it become more duplicated, while also it lower the volume and make it stable every time to prevent the sound from becomeing loud, but the problem is that after a while the program run out of memory, and this is the problem, can you make the program run infinitly without running out of memory? And how we can be sure about that? Also there is exponential growth that i want you to delete because it causeing some problems Here is the code: import tkinter as tk from tkinter import filedialog from pydub import AudioSegment from [login to view URL] import WhiteNoise from decimal import Decimal import os from [login to view URL] import play class SoundDuplicator([login to view URL]): def __init__(self): super().__init__() [login to view URL]("Sound Duplicator") [login to view URL]("300x150") [login to view URL] = None self.num_duplicates = Decimal('1e10000') self.volume_reduction = 5000000000 # in decibels self.exp_growth_rate = 1000 self.import_button = [login to view URL](self, text="Import WAV", command=self.import_wav) [login to view URL](pady=10) self.play_button = [login to view URL](self, text="Play", command=self.play_sound, state=[login to view URL]) [login to view URL](pady=10) self.play_button_pressed = False def import_wav(self): file_path = [login to view URL](filetypes=[("WAV files", "*.wav")]) if file_path: [login to view URL] = AudioSegment.from_wav(file_path) [login to view URL](state=[login to view URL]) def play_sound(self): if [login to view URL]: self.play_button_pressed = True self.duplicate_and_play() self.play_button_pressed = False # reset flag after sound finishes playing def duplicate_and_play(self): sound = [login to view URL] noise = WhiteNoise().to_audio_segment(duration=len(sound)) mixed_sound = None try: duplicates_remaining = 2 # Number of desired duplicates while duplicates_remaining > 0: mixed_sound = sound for _ in range(int(1e10000)): mixed_sound = [login to view URL](noise - self.volume_reduction) [login to view URL]("[login to view URL]", format="wav") # Export mixed sound to a temporary WAV file mixed_sound = AudioSegment.from_wav("[login to view URL]") # Re-import the mixed sound from the temporary file self.play_sound_segment(mixed_sound) [login to view URL]() # Close the mixed sound to free up memory [login to view URL]("[login to view URL]") # Delete the temporary WAV file to clean up del noise # Delete the noise object to release memory noise = None # Set the variable to None to remove the reference duplicates_remaining -= 1 except MemoryError: if mixed_sound: [login to view URL]() # Close the mixed sound if an exception occurred self.duplicate_and_play() # Restart the duplication and playback process def play_sound_segment(self, sound): chunk_size = 2048 for chunk in sound[::chunk_size]: if not self.play_button_pressed: break [login to view URL](out_f="[login to view URL]", format="wav") AudioSegment.from_wav("[login to view URL]").play() # use AudioSegment's play method instead of [login to view URL] if __name__ == "__main__": app = SoundDuplicator() [login to view URL]() ----------------------------------------------------- I made it with chat gpt 3.5 Please Please send me a massege and explain to me exactly whats your approch for making the program run infinitly without running out of memory
Mã dự án: 37033904

Về dự án

45 đề xuất
Dự án từ xa
Hoạt động 8 tháng trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
45 freelancer chào giá trung bình $142 USD cho công việc này
Avatar người dùng
Top 1% in Freelancer.com Hi, Greetings! ✅checked your project details: ✅Completed Time: In project deadline We have worked on 900 + Projects. I have 6 + years of the experience in same kind of projects. If you are looking for a true Freelancer, I am the Right person for you. I am available almost 24-7 and am very responsive. I feel proud that I am a trusted Freelancer who pleases almost every single client. You can rest assure, your work will be delivered well in advance of others, with passion and accuracy. I guarantee you instant communication & responses when you need me. Why choose me? I think every client is the reason for my success. I only take projects which I am sure I can do quickly. My Portfolio Items: https://www.freelancer.com/u/schoudhary1553 I would really like to work with you on this project. If interested, Kindly contact me via chat for further details and discussion. Thank you Sandeep
$180 USD trong 3 ngày
4,9 (101 nhận xét)
7,0
7,0
Avatar người dùng
I am experienced MS Machine Learning expert & Data Scientist, Software Engr, MS Excel Expert and Certified Graphics Designer. I have 04 yrs of experience in the field of Machine Learning and Designing. I have done multiple successful projects in these field. I can help. NOTE: The time and budget for this bid is tentative and will be finalized after detailed discussion of project scope and requirements
$100 USD trong 2 ngày
5,0 (44 nhận xét)
5,9
5,9
Avatar người dùng
Hello Muhmmad, I hope this message finds you well. I will be able to help you with your project. I read through the description and it sounds like I am just the right person for it. I have the right skill set with sophisticated experience in Python, Programming, and Programming Help. As a next step I would like to discuss some further questions with you. Either over the chat or a call, whatever you prefer. For my references and qualifications: I graduated in Computer Science with highest grades from one of the most reputable universities in Germany. Currently, I am enrolled in the Master's program. During my studies, I already published a paper on the subject of Artificial Intelligence. Further, I managed to get a lot of hands-on experience by working in several companies that operate in the field of Computer Science. As a native German speaker who was living in Canada for a year, my level in English is proficient/fluent. Further, I am in the preferred Freelancer program, making me part of the top 3% on the platform. Many successful past projects can be seen on my profile page. I am looking forward to working with you and if you have any further questions I would be happy to answer them. Best regards, Simon
$200 USD trong 3 ngày
5,0 (19 nhận xét)
5,9
5,9
Avatar người dùng
I would like to make python program that will duplicate sound. I hope you will give me a chance to work on this project. Please initiate a message for further discussion.
$125 USD trong 4 ngày
5,0 (14 nhận xét)
5,3
5,3
Avatar người dùng
Hello, I understood your needs but i have few doubts can you text me so i can clear all my doubts right away
$300 USD trong 7 ngày
5,0 (9 nhận xét)
4,7
4,7
Avatar người dùng
Hello! I can create python program that will duplicate sound. I assure you to deliver high-quality work with a fast turnaround. Looking forward to hearing from you. Regards Munish Gupta.
$120 USD trong 3 ngày
5,0 (5 nhận xét)
4,4
4,4
Avatar người dùng
Hello, I've complete MS Software Engineering. I've 5-Year experience in Core Python development. My Core Skills are Machine Learning and AI - Deep Learning - Tensorflow - Pytorch - OpenCV - Deep Learning - Data Analysis K-mean - ID3 - Bayesian theorem - confusion matrix I'm excited with feeling that I would be able to satisfy your requirements Within Deadline. Please leave a message on my chat so we can discuss the project. Looking forward to your response, Best Regards: Aqeel Ahmed
$100 USD trong 1 ngày
4,4 (24 nhận xét)
5,3
5,3
Avatar người dùng
Hi, i have read your project, i am interested in your project, but i have some doubt, please clear my doubts, i am ready to start the work right now.
$140 USD trong 7 ngày
5,0 (8 nhận xét)
4,4
4,4
Avatar người dùng
Dear Client, I am interested in assisting you with setting up your existing WordPress website on an IIS server. With experience in WordPress installation, configuration, and proficiency in working with IIS servers, I am confident in delivering a smooth and successful setup. Thank you for considering my bid. I am excited about the opportunity to assist you in setting up your WordPress website on the IIS server. Please feel free to reach out if you have any questions or would like to discuss the project further. Best regards, Lalit
$200 USD trong 7 ngày
5,0 (17 nhận xét)
4,2
4,2
Avatar người dùng
Hello I have 8+ years of experience in python, Django, and Flask development, I became an expert professional that fits perfectly with your project. I have been developing 40+ projects using Python, Vue, React + Django, Responsive Design, and UX/UI. My skill set: - Python, Django, Flask, Django-tasty pie/Django-rest-framework. - Ionic, Ionic 2, Angular.js, Angular 2, Apache, Cordova, Phonegap. - Node.js (Express / Meteor/ SailsJS) - SQL - Postgresql, Mysql - Well-versed with Git - MEAN/MERN stack development - WordPress, PHP - Flutter development - React Native developmentac Let's discuss this in detail over chat and hope for your reply. Thank you.
$220 USD trong 7 ngày
4,9 (5 nhận xét)
4,2
4,2
Avatar người dùng
Hi Ready to make the program run infinitely without running out of memory. Please send me a message to discuss further requirements of this project in chat. Thanks
$120 USD trong 5 ngày
5,0 (7 nhận xét)
3,8
3,8
Avatar người dùng
Hello. I am fullstack web developer and python developer. I am developing international projects for a while time. I was inspect your request and If we can discuss further details I can help you. I am available now. Have a perfect day.
$100 USD trong 7 ngày
4,6 (8 nhận xét)
4,3
4,3
Avatar người dùng
hello i am available to work on this task, contact me for more details on the task in chat am available to work on it best regards
$140 USD trong 7 ngày
5,0 (10 nhận xét)
3,6
3,6
Avatar người dùng
Hello there! I have carefully reviewed your Python code and the challenge you're facing with memory usage. To address the issue of running out of memory, I propose the following approach: One of the main reasons for running out of memory in your program is the exponential growth loop. We can modify the duplicate_and_play function to handle the exponential growth rate more efficiently. By adjusting the growth rate and introducing a decay mechanism, we can prevent the memory from being overwhelmed. Instead of exporting and re-importing the mixed sound repeatedly, we can optimize the process by keeping the mixed sound in memory and updating it directly with each iteration. This will help reduce memory usage significantly. I'm ready to discuss these strategies and further details in our chat. Let's collaborate to implement these improvements and ensure your program runs smoothly without running out of memory. Kind Regards! Arbaz A
$220 USD trong 5 ngày
5,0 (5 nhận xét)
3,8
3,8
Avatar người dùng
Hi there! I am Marwane, and I am excited to help you with your project! I understand that you are looking for a Python program that can duplicate sound under each other with a chosen number. My skillset allows me to intervene in subjects related to artificial intelligence, machine learning, deep learning and data analysis. Additionally, I have experience in coding in Python which would be perfect for this project. I believe that my skillset makes me the perfect fit for this job as they allow me to intervene in subjects related to artificial intelligence, machine learning, deep learning and data analysis which would be perfect for this project. I would love the opportunity to discuss further how my skillset can help you complete this project. Please feel free to reach out if there is anything else you'd like me to clarify or if you'd like more information about me or my work. Thank you for your consideration!
$140 USD trong 2 ngày
4,9 (14 nhận xét)
3,5
3,5
Avatar người dùng
How are you. I am a Python expert with 26 years of experience. I understand that you are looking for a Python program that can duplicate sound under each other with chosen numbers inside the code to make it stable every time so that the sound does not become too loud. I have developed a unique solution that can solve this problem effectively. The program runs infinitly without running out of memory, which ensures that it will never slow down or stop working. Thank you and I look forward to hearing from you soon.
$200 USD trong 4 ngày
5,0 (3 nhận xét)
2,9
2,9
Avatar người dùng
Hi there, I have a great solution for you regarding the issues of running out of memory and exponential growth. Kindly ping me a message asap if you want the better solution, I will provide you the accurate proficient working code within a short period of time. Let's discuss details over the chat. Looking forward for your response. Cheers! Hashir
$120 USD trong 1 ngày
5,0 (5 nhận xét)
2,2
2,2
Avatar người dùng
Hello, Hope you’re having a great day! My suggestion is Employing techniques like efficient memory management, optimization, and periodic cleanup can help mitigate memory issues. Send me a message so that we can discuss further.
$200 USD trong 2 ngày
5,0 (3 nhận xét)
2,4
2,4
Avatar người dùng
Hello, Greetings I am pretty sure that I can produce high-quality and perfect results for your project. With Python, I have developed AI engines, BOT, web scraping tools, and so on. PHP and Python are my majors, so you will be satisfied. I am a very experienced web developer with more than 5 years of rich experience with Laravel, CodeIgniter, Python, Django, etc. So more specifically, my skills are. Web development  Backend: Python, Django, Node.js, Laravel, MySQL, MongoDB  FrontEnd: React, Angular, Vue. I hope you will share more details about your project. I am waiting for your response. Thank you very much and have a nice day.
$250 USD trong 7 ngày
3,8 (1 nhận xét)
3,2
3,2
Avatar người dùng
Hi, We went through your project description and it seems like our team is a great fit for this job. We are an expert team which have many years of experience on Python, Programming, Programming Help Lets connect in chat so that We discuss further. Regards
$110 USD trong 7 ngày
5,0 (2 nhận xét)
1,2
1,2

Về khách hàng

Cờ của JORDAN
Aydoun, Jordan
5,0
1
Phương thức thanh toán đã xác thực
Thành viên từ thg 1 23, 2023

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.