Code Monkey home page Code Monkey logo

op3nvoice-audio-player's Introduction

OP3Nvoice Audio Player

This is a proof of concept audio player that integrates with the OP3Nvoice search library.

This uses the PHP library available here: https://github.com/Op3nvoice/op3nvoice-php

To use this:

  • you should only have to configure your API Key (line 8) and set the audio duration (line 57). This audio duration will be available from the search results eventually.
  • download the OP3Nvoice PHP library from above and simply copy the src/ and vendor/ directories into the root directory of the player.
  • then add your search terms via the url. It should look something like this:

http://localhost/op3nvoice-player/?terms=something

http://localhost/op3nvoice-player/?terms=close|monkey|desert|does

This can be improved in a number of ways:

  • this only shows the first resulting file, we could extend it to show all of them;
  • the duration should be included in the API call so we don't have to hardcode it here (line 57);
  • if there are no search results, we could display a more useful/friendly message.

op3nvoice-audio-player's People

Contributors

caseysoftware avatar

Watchers

James Cloos avatar Hasan Abo-Shally avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.