<p dir="ltr">Miles,</p>
<p dir="ltr">Are you aware of io.BytesIO? I don't know the performance implications of using a wrapper, but I'd expect loading the data to take marginal time compared to training your ML model.</p>
<p dir="ltr">--<br>
Joseph</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Sep 10, 2016 4:35 PM, "Miles Dowe" <<a href="mailto:milesdowe@gmail.com">milesdowe@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I was interested in the creation of a function for the scipy.io.wavfile utility. Rather than requiring that read() only be performed on a file, I'd like to add a read() function where a byte array of WAV data can be provided directly.</div><div><br></div><div><span style="line-height:1.5">Here's some background behind this motivation. I am a student with the University of Washington and I have been working with a former student's machine learning algorithm. The aim of the algorithm is to detect human laughter and it utilizes SciPy and NumPy.</span><br></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">We're aiming to create a service-oriented architecture maintained in AWS and our audio data is stored within S3. I've been experimenting with the Boto3 library, which returns a byte array, and I'd like to provide that data directly to the machine learning script (instead of writing to the disk and reading from it).</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">I'd like to hear your thoughts and might experiment with this idea until approval is expressed by the community.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Thank you for your time,</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Miles</span></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Miles</div></div>
<br>______________________________<wbr>_________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@scipy.org">SciPy-Dev@scipy.org</a><br>
<a href="https://mail.scipy.org/mailman/listinfo/scipy-dev" rel="noreferrer" target="_blank">https://mail.scipy.org/<wbr>mailman/listinfo/scipy-dev</a><br>
<br></blockquote></div></div>