element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Rocking Raspberry Pi
  • Challenges & Projects
  • Design Challenges
  • Rocking Raspberry Pi
  • More
  • Cancel
Rocking Raspberry Pi
Blog Raspberry Pi and Karaoke Machine (Implementation of Karaoke Part 1 of 2)
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: babusingh9211
  • Date Created: 26 Apr 2014 4:42 PM Date Created
  • Views 969 views
  • Likes 3 likes
  • Comments 1 comment
  • rpiintermediate
  • rockingraspberrypi
  • raspberrypi
  • rocking_pi
Related
Recommended

Raspberry Pi and Karaoke Machine (Implementation of Karaoke Part 1 of 2)

babusingh9211
babusingh9211
26 Apr 2014

Hello everyone,

 

This week I’ll post to the steps to build the Raspberry Pi as a perfect Karaoke Machine with voice commands based song selector.

 

Well as previously said in the enrollment application and my 1st post that I’ll build the voice command based song selector and player. So I am posting that which I’ve worked.

 

This is the block representation of my idea.

 

image

 

It has totally 4 different blocks or parts.

 

In todays post I just tell about the installation of the few software which is used in handling these blocks.

 

Let’s start with database section.

 

In the whole idea this is the longest part. Otherwise the idea is small.

 

For the database section I created a php script which helps in storing the karaoke file and provide response to requests.

 

So for that I created a independent web-server on the Raspberry Pi.

For this firstly I installed apache and PHP on Raspberry Pi.


But before proceeding don’t forgot to change you Raspberry Pi default password because no one can access your raspberry pi without your permission.

For that enter the following in terminal

 

passwd

 

To install enter the following in the terminal

 

sudo apt-get install apache2 php5 libapache2-mod-php5

 

This will install the apache PHP5 and other important thing on the Raspberry Pi

 

Enter the raspberry pi IP in the browser

You get the response like this.

 

image

 

Edit the index.html file to see whatever you want. The file is located in /var/www/

 

See what I have made changes to the file and the response I get.

 

image

 

In order to edit the file using terminal you have the permission to edit the files.

To take the ownership of the web root

 

Enter the following in terminal

 

sudo chown -R pi /var/www

 

You can also check wheter your php is working or not.

For that enter the following in terminal

 

cd /var/www/

 

go to the web root folder

 

rm index.html

 

this will remove the old index.html file.

 

nano index.php

 

In the file add the following line

 

<?php
phpinfo();
?>


Now save the changes to the file.


Now open the browser and open your raspberry pi IP.

Or you can open in Raspberry Pi’s browser using IP http://127.0.0.1

 

This is the response what I’ve get

 

Fullscreen 4555.contentimage_31105.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>

 

Now the next step is to installing mysql server.

To install mysql server enter the following in terminal

 

sudo apt-get install mysql-server mysql-client php5-mysql

 

while in the installation it will ask you to create a password. Enter the password of your own choice.

 

image

 

And the next step is to install phpmyadmin.

To install phpmyadmin enter the following in the terminal.

 

sudo apt-get install phpmyadmin

 

This will also ask you to create a password. Enter the password of your own choice.

 

And to checking phpmyadmin whether it is working or not. Enter the following in the browser.

http://raspberrypi_ip/phpmyadmin here raspberrypi_ip is your Raspberry Pi’s IP and make sure while using it from other device that the device is connected to the same network.

 

Here is what I have got.

 

Fullscreen 2402.contentimage_31107.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>
Fullscreen 6644.contentimage_31108.html Download
<html><head><title>Jive SBS</title></head>
<body><font face="arial,helvetica,sans-serif">
<b>Error</b><br><font size="-1">
An general error occurred while processing your request.
</font></font></body></html>

 

 

You can now also use your raspberry pi as your own webserver just a small more configuration in your modem.

For using your Raspberry Pi as webserver you need to port forward to the few ports to your raspberry pi local IP

This is all for now....

I will post the next step in my next post.

 

If you have any problem and query regarding this don’t hesitate to ask I’ll try my best to answer it. If you have any suggestion’ please comment below.

 

Continued on Raspberry Pi and Karaoke Machine (Implementation of Karaoke Part 2 of 2)

 

Regards,

Sumit Rai

  • Sign in to reply
Parents
  • mmohit00007
    mmohit00007 over 11 years ago

    image image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • mmohit00007
    mmohit00007 over 11 years ago

    image image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube