-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
368 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,321 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<meta name="viewport" content="width=device-width, minimum-scale=1.0"> | ||
<title>Video Translation</title> | ||
|
||
<meta name="description" content="Job request to translate video audio content into target language with or without subtitles."> | ||
|
||
|
||
<link rel="icon" href="/favicon.ico" type="image/x-icon"> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,400i,500,500i,700,700i|Noto+Sans:400,400i,700,700i|Source+Code+Pro&subset=latin-ext"> | ||
<link rel="stylesheet" href="/doks-theme/assets/css/style.css"> | ||
|
||
</head> | ||
<body class="blue" data-spy="scroll" data-target=".js-scrollspy"> | ||
|
||
<div class="offcanvas visible-xs"> | ||
<ul class="offcanvas__nav"> | ||
|
||
<li><a href="/">Home</a></li> | ||
|
||
<li><a href="https://github.com/nostr-protocol/nips/blob/vending-machine/90.md">NIP-90</a></li> | ||
|
||
</ul><!-- /.offcanvas__nav --> | ||
</div><!-- /.offcanvas --> | ||
|
||
|
||
|
||
<header class="site-header"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
|
||
<a href="/" class="site-header__logo">Data Vending Machine</a> | ||
|
||
|
||
<ul class="site-header__nav hidden-xs"> | ||
|
||
<li><a href="/">Home</a></li> | ||
|
||
<li><a href="https://github.com/nostr-protocol/nips/blob/vending-machine/90.md">NIP-90</a></li> | ||
|
||
</ul><!-- /.site-header__nav --> | ||
<button class="offcanvas-toggle visible-xs"> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</button><!-- /.offcanvas-toggle --> | ||
|
||
</div><!-- /.col --> | ||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</header><!-- /.site-header --> | ||
|
||
|
||
<div class="hero-subheader"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<div class="align-container" data-mh> | ||
<div class="align-inner"> | ||
|
||
<h1 class="hero-subheader__title">Video Translation</h1> | ||
|
||
|
||
<p class="hero-subheader__desc">Job request to translate video audio content into target language with or without subtitles.</p> | ||
|
||
|
||
</div><!-- /.align-inner --> | ||
</div><!-- /.align-container --> | ||
</div><!-- /.col --> | ||
|
||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</div><!-- /.hero-subheader --> | ||
<div class="section"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-7"> | ||
<div class="content"> | ||
<h1 id="input">Input</h1> | ||
|
||
<p>Clients provide a link to the input video or a reference to an event or job ID. The ID or link can either point directly to a media file (e.g. ending with .mp4) or to a social media share link, e.g. a Tweet or a YouTube video.</p> | ||
|
||
<h1 id="params">Params</h1> | ||
|
||
<h2 id="language"><code class="language-plaintext highlighter-rouge">language</code></h2> | ||
|
||
<p>Specifies the output language of the video. Input language is auto-detected.</p> | ||
|
||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "param", "language", "es"] | ||
</code></pre></div></div> | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th>ID</th> | ||
<th>Language</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>en</td> | ||
<td>English</td> | ||
</tr> | ||
<tr> | ||
<td>jp</td> | ||
<td>Japanese</td> | ||
</tr> | ||
<tr> | ||
<td>cn</td> | ||
<td>Chinese</td> | ||
</tr> | ||
<tr> | ||
<td>de</td> | ||
<td>German</td> | ||
</tr> | ||
<tr> | ||
<td>in</td> | ||
<td>Tamil</td> | ||
</tr> | ||
<tr> | ||
<td>fr</td> | ||
<td>French</td> | ||
</tr> | ||
<tr> | ||
<td>kr</td> | ||
<td>Korean</td> | ||
</tr> | ||
<tr> | ||
<td>br</td> | ||
<td>Portuguese (Brazil)</td> | ||
</tr> | ||
<tr> | ||
<td>pt</td> | ||
<td>Portuguese (Portugal)</td> | ||
</tr> | ||
<tr> | ||
<td>it</td> | ||
<td>Italian</td> | ||
</tr> | ||
<tr> | ||
<td>es</td> | ||
<td>Spanish</td> | ||
</tr> | ||
<tr> | ||
<td>id</td> | ||
<td>Indonesian</td> | ||
</tr> | ||
<tr> | ||
<td>nl</td> | ||
<td>Dutch</td> | ||
</tr> | ||
<tr> | ||
<td>tr</td> | ||
<td>Turkish</td> | ||
</tr> | ||
<tr> | ||
<td>ph</td> | ||
<td>Filipino</td> | ||
</tr> | ||
<tr> | ||
<td>pl</td> | ||
<td>Polish</td> | ||
</tr> | ||
<tr> | ||
<td>se</td> | ||
<td>Swedish</td> | ||
</tr> | ||
<tr> | ||
<td>bg</td> | ||
<td>Bulgarian</td> | ||
</tr> | ||
<tr> | ||
<td>ro</td> | ||
<td>Romanian</td> | ||
</tr> | ||
<tr> | ||
<td>se</td> | ||
<td>Arabic (Saudi Arabia)</td> | ||
</tr> | ||
<tr> | ||
<td>ae</td> | ||
<td>Arabic (UAE)</td> | ||
</tr> | ||
<tr> | ||
<td>cz</td> | ||
<td>Czech</td> | ||
</tr> | ||
<tr> | ||
<td>gr</td> | ||
<td>Greek</td> | ||
</tr> | ||
<tr> | ||
<td>fi</td> | ||
<td>Finnish</td> | ||
</tr> | ||
<tr> | ||
<td>hr</td> | ||
<td>Croatian</td> | ||
</tr> | ||
<tr> | ||
<td>my</td> | ||
<td>Malay</td> | ||
</tr> | ||
<tr> | ||
<td>sk</td> | ||
<td>Slovak</td> | ||
</tr> | ||
<tr> | ||
<td>dk</td> | ||
<td>Danish</td> | ||
</tr> | ||
<tr> | ||
<td>ua</td> | ||
<td>Ukrainian</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<h2 id="subtitle"><code class="language-plaintext highlighter-rouge">subtitle</code></h2> | ||
|
||
<p>Optional parameter. Specifies the language for subtitle captions that be burned into the video.</p> | ||
|
||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "param", "subtitle", "en"] | ||
</code></pre></div></div> | ||
|
||
<h2 id="range"><code class="language-plaintext highlighter-rouge">range</code></h2> | ||
|
||
<p>Optional parameter. Specifies a range if the video translation should be targeted to a specific timestamp range.</p> | ||
|
||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "param", "range", "<start>", "<end>" ] | ||
</code></pre></div></div> | ||
|
||
<h2 id="format"><code class="language-plaintext highlighter-rouge">format</code></h2> | ||
|
||
<p>Optional. If set the DVM uses the format to convert the video to the given format, otherwise it’s up to the DVM to choose an output format. By using a format such as mp3, the video might also be converted to an audio file.</p> | ||
|
||
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[ "output", "video/mp4" ] | ||
</code></pre></div></div> | ||
|
||
<h1 id="output">Output</h1> | ||
|
||
<p>A link to the translated video.</p> | ||
|
||
<h1 id="example">Example</h1> | ||
|
||
<h2 id="generates-the-output-based-on-the-input-link-and-params">Generates the output based on the input link and params</h2> | ||
|
||
<div class="language-json highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="p">{</span><span class="w"> | ||
</span><span class="nl">"content"</span><span class="p">:</span><span class="w"> </span><span class="s2">""</span><span class="p">,</span><span class="w"> | ||
</span><span class="nl">"kind"</span><span class="p">:</span><span class="w"> </span><span class="mi">5201</span><span class="p">,</span><span class="w"> | ||
</span><span class="nl">"tags"</span><span class="p">:</span><span class="w"> </span><span class="p">[</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"https://video.nostr.build/401b8475dc5aa523b2edc7fbeb462f09f168aac8f268a598ac3556aca279c7fa.mp4"</span><span class="p">,</span><span class="w"> </span><span class="s2">"url"</span><span class="w"> </span><span class="p">],</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"<hexid>"</span><span class="p">,</span><span class="w"> </span><span class="s2">"event"</span><span class="w"> </span><span class="p">],</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"i"</span><span class="p">,</span><span class="w"> </span><span class="s2">"<hexid>"</span><span class="p">,</span><span class="w"> </span><span class="s2">"job"</span><span class="w"> </span><span class="p">],</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"param"</span><span class="p">,</span><span class="w"> </span><span class="s2">"language"</span><span class="p">,</span><span class="w"> </span><span class="s2">"es"</span><span class="p">],</span><span class="w"> | ||
</span><span class="p">[</span><span class="w"> </span><span class="s2">"param"</span><span class="p">,</span><span class="w"> </span><span class="s2">"subtitle"</span><span class="p">,</span><span class="w"> </span><span class="s2">"en"</span><span class="p">]</span><span class="w"> | ||
</span><span class="p">]</span><span class="w"> | ||
</span><span class="p">}</span><span class="w"> | ||
</span></code></pre></div></div> | ||
|
||
</div><!-- /.content --> | ||
</div><!-- /.col --> | ||
<div class="col-md-4 col-md-offset-1"> | ||
<div class="sections-list-wrapper"> | ||
<div class="sections-list js-sections js-affix js-scrollspy hidden-xs hidden-sm"></div><!-- /.sections-list --> | ||
</div> | ||
</div><!-- /.col --> | ||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</div><!-- /.section --> | ||
|
||
<div class="js-footer-area"> | ||
|
||
|
||
|
||
<footer class="site-footer"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-sm-6"> | ||
|
||
<a href="/" class="site-footer__logo">Data Vending Machine</a> | ||
|
||
|
||
<hr> | ||
<p class="site-footer__copyright">MIT License</p> | ||
|
||
</div><!-- /.col --> | ||
|
||
<div class="col-sm-6 align-right"> | ||
<ul class="social-list"> | ||
|
||
<li> | ||
<a href="https://github.com/pablof7z/data-vending-machines.org" target="_blank" class="social-list__item social-list__item--github"> | ||
<i class="icon icon--github"></i> | ||
</a> | ||
</li> | ||
|
||
</ul><!-- /.social-list --> | ||
</div><!-- /.col --> | ||
|
||
</div><!-- /.row --> | ||
</div><!-- /.container --> | ||
</footer><!-- /.site-footer --> | ||
|
||
|
||
<script src="/doks-theme/assets/js/vendor/jquery.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/bootstrap/affix.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/bootstrap/scrollspy.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/vendor/matchHeight.min.js"></script> | ||
<script type="text/javascript" src="/doks-theme/assets/js/scripts.min.js"></script> | ||
|
||
|
||
|
||
|
||
</div><!-- /.js-footer-area --> | ||
</body> | ||
</html> |
Oops, something went wrong.