<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Open Source on Prateek Sharma</title>
		<link>https://prateeksharma.me/open-source/</link>
		<description>Recent content in Open Source on Prateek Sharma</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Fri, 20 Jun 2025 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://prateeksharma.me/open-source/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Patched OpenVoice for short-clip cloning and CPU inference</title>
				<link>https://prateeksharma.me/open-source/openvoice-short-clip-patch/</link>
				<pubDate>Fri, 20 Jun 2025 00:00:00 +0000</pubDate>
				<guid>https://prateeksharma.me/open-source/openvoice-short-clip-patch/</guid>
				<description>&lt;p&gt;While building the &lt;a href=&#34;https://prateeksharma.me/projects/audio-cloning/&#34;&gt;Audio Cloning&lt;/a&gt;&#xA; stage of my&#xA;video-translator pipeline, I hit two blockers in &lt;a href=&#34;https://github.com/myshell-ai/OpenVoice&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;OpenVoice&lt;/a&gt;&#xA;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;openvoice/se_extractor.py&lt;/code&gt; discarded audio segments shorter than 1.5 seconds,&#xA;which meant short subtitle lines (&lt;code&gt;hello&lt;/code&gt;, &lt;code&gt;hi&lt;/code&gt;, &lt;code&gt;bye&lt;/code&gt;) couldn&amp;rsquo;t be cloned at&#xA;all. I relaxed the threshold to ~0.5 seconds and added an explicit skip for&#xA;lines too short to process.&lt;/li&gt;&#xA;&lt;li&gt;The library assumed a CUDA GPU. I patched it to run on CPU so it worked on&#xA;Apple M1.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The changes live in my fork at&#xA;&lt;a href=&#34;https://github.com/pratts/OpenVoice&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;github.com/pratts/OpenVoice&lt;/a&gt;&#xA;. They were&#xA;scoped to my use case and haven&amp;rsquo;t been proposed upstream.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
