element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
Design for a Cause - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Design for a Cause - Design Challenge
  • More
  • Cancel
Design for a Cause - Design Challenge
Blog Design for a Cause - Smart Voice Synthesizer, Visualizer- Demo
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: prashanth.nagendrappa
  • Date Created: 14 Sep 2018 7:41 PM Date Created
  • Views 1297 views
  • Likes 4 likes
  • Comments 5 comments
  • this week on element14
  • design for a cause - design challenge
  • design for a cause design challenge
Related
Recommended

Design for a Cause - Smart Voice Synthesizer, Visualizer- Demo

prashanth.nagendrappa
prashanth.nagendrappa
14 Sep 2018

#Blog10_A

 

Hello Everyone!

 

It's great to be chosen for the Design for a Cause' Design Challenge, I am thankful to #Element14 Community, #Arduino, and the sponsors.

 

Here is the Final Project demo!

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

I am very much thank full to prasannag1993 (Prasanna Kumar)vinyasa.mv , genebren Gene Breniman Sir, gkbhat95 ,  dixonselvan and all my friends for their encouragement and support.

 

The Code :

// Headers for Audio Circuit
#include <SD.h>
#include <SPI.h>
#include <AudioZero.h>


// Headers for Display
#include <Wire.h>  
#include <ACROBOTIC_SSD1306.h>  


// Defining the Sentence to be told
String T3 ="Can you Switch on the fan";
String T4 ="Its Difficult but possible";
String T5=" Hi I am prashanth Kumar g n, the participant for the ELEMENT14 design contest ";
String T6 ="Its Boring Lets play some games";
String T7 ="I want some food";
String T8 ="Shall we have dinner";
String T9 ="I want to go to rest room";
String T10 ="All the best";
String T11 ="Yes I won the Game";
String T12 ="Lets Be Friends";
String T13 ="If you sweat more in Peace, You bleed less in war";
String T14 ="Work hard in Silence, Let your success makes noice";




int a,b,c,d,e;
int d1 = 1000;
int d2 = 4000;
int d3 = 4000;


void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);


  if (!SD.begin(4)) {
    Serial.println(" failed!");
    while(true);
  }
  Serial.println(" done.");


  // 44100kHz stereo => 88200 sample rate
  AudioZero.begin(32000);


  Wire.begin();  
  oled.init();                      
  oled.clearDisplay(); 
}


// the loop routine runs over and over again forever:
void loop() {
  
 //*****************************************************************************
 //read the Data from flex sensors
  int s0 = analogRead(A1);
  int s1 = analogRead(A2);
  int s2 = analogRead(A3);
  int s3 = analogRead(A4);
  int s4 = analogRead(A2);
 //***************************************************************************** 
 // print out the value you read:
//  Serial.print(" s0: ");
//  Serial.print(s0);
//
//  Serial.print(", s1: ");
//  Serial.print(s1);
//
//  Serial.print(", s2: ");
//  Serial.print(s2);
// 
//  Serial.print(", s3: ");
//  Serial.print(s3);
//  
//  Serial.print(", s4: ");
//  Serial.println(s4);
  
//*****************************************************************************
// Digitalising the Bend values
// Getting a
  
  {if(s0<=530)
  {
    a=1;
   Serial.print(" *a:   ");
  Serial.print(a);
  }
  else
  { 
    a=0;
   Serial.print(" *a:   ");
  Serial.print(a);
  }
  
// Getting b
   if(s1<=512)
  {
    b=1;
   Serial.print(" *b:   ");
  Serial.print(b);
  }
  else
  { 
    b=0;
  Serial.print(" *b:   ");
  Serial.print(b);
  }
  
// Getting c
   if(s2<=481)
  {
    c=1;
   Serial.print("  *c:    ");
  Serial.print(c);
  }
  else
  { 
    c=0;
   Serial.print(" *c:   ");
  Serial.print(c);
  }
  
// Getting d
  if(s3<=484)
  {
    d=1;
   Serial.print(" *d:   ");
  Serial.print(d);
  }
  else
  { 
    d=0;
   Serial.print(" *d:   ");
  Serial.print(d);
  }
  
// Getting e
  if(s4<=440)
  {
    e=1;
   Serial.print(" *e:   ");
    Serial.println(e);
  }
  else
  { 
    e=0;
   Serial.print(" *e:   ");
  Serial.println(e);
  }
  delay(d1);
  }
//***************************************************************************  
//Sending Text on Appropriate hand sign
int z =(a*16)+(b*8)+(c*4)+(d*2)+(e*1);
Serial.println(z); 


switch (z) {
   
   
    case 4:  
     Serial.println(T3);
     test_t3();
      delay(d2); z=0; delay(d3);
      break;
    case 2:   
     Serial.println(T4);
         test_t4();
      delay(d2); z=0; delay(d3);
      break;
    case 1:   
      Serial.println(T5);
          test_t5();
      delay(d2); z=0; delay(d3);
      break;


  case 24:   
      Serial.println(T6);
          test_t6();
      delay(d2); z=0; delay(d3);
      break;
    case 20:    
      Serial.println(T7);
          test_t7();
      delay(d2); z=0; delay(d3);
      break;
    case 18:  
     Serial.println(T8);
         test_t8();
      delay(d2); z=0; delay(d3);
      break;
    case 17:   
     Serial.println(T9);
         test_t9();
      delay(d2); z=0; delay(d3);
      break;
    case 28:   
      Serial.println(T10);
          test_t10();
      delay(d2); z=0; delay(d3);
      break;


    
    case 30:   
      Serial.println(T11);
          test_t11();
      delay(d2); z=0; delay(d3);
      break;
    case 6:    
      Serial.println(T12);
          test_t12();
      delay(d2); z=0; delay(d3);
      break;
    case 7:  
      Serial.println(T13);
          test_t13();
      delay(d2); z=0; delay(d3);
      break;
    case 15:   
      Serial.println(T14);
          test_t14();
      delay(d2); z=0; delay(d3);
      break;
      default:
      Serial.println("******");
      break;
      
  }


  



  delay(1200);        // delay in between reads for stability
}


void test_t3()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T3);  
  
//Play correspodning voice


  File myFile2 = SD.open("test3.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t4()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T4);  
  
//Play correspodning voice


  File myFile2 = SD.open("test4.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t5()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T5);  
  
//Play correspodning voice


  File myFile2 = SD.open("test5.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t6()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T6);  
  
//Play correspodning voice


  File myFile2 = SD.open("test6.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t7()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T7);  
  
//Play correspodning voice


  File myFile2 = SD.open("test7.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t8()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T8);  
  
//Play correspodning voice


  File myFile2 = SD.open("test8.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t9()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T9);  
  
//Play correspodning voice


  File myFile2 = SD.open("test9.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t10()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T10);  
  
//Play correspodning voice


  File myFile2 = SD.open("test10.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t11()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T11);  
  
//Play correspodning voice


  File myFile2 = SD.open("test11.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}




void test_t12()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T12);  
  
//Play correspodning voice


  File myFile2 = SD.open("test12.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t13()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T13);  
  
//Play correspodning voice


  File myFile2 = SD.open("test13.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}


void test_t14()
{
//Display Text


  oled.setTextXY(0,0);              
  oled.putString(T13);  
  
//Play correspodning voice


  File myFile2 = SD.open("test14.wav");
  if (!myFile2) {
    while (true);
  }
  AudioZero.play(myFile2); 
}

 

 

 

 

Thanks for the opportunity.

  • Sign in to reply

Top Comments

  • krishnal
    krishnal over 6 years ago +2
    Nice demo Good idea smart voice synthesizer visualizer Prashanth Kumar G N
  • pranjalranjan299
    pranjalranjan299 over 6 years ago +1
    Great demo Prashanth Kumar G N ! Your blog on AudioZero helped me as well
  • swapnil2512
    swapnil2512 over 5 years ago

    HELLO SIR,COULD YOU HELP ME WITH THIS PROJECT THAT YOU HAVE DEMONSTRATED , COULD YOU PROVIDE EFFECTIVE PROCEDURE TO PHYSICALLY INPLEMENT THE PROJECT ON MY OWN. AND COULD YOU PROVIDE ME WITH YOUR EMIAL ID .. prashanth.nagendrappa

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • prashanth.nagendrappa
    prashanth.nagendrappa over 6 years ago in reply to pranjalranjan299

    Thank You bro

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • pranjalranjan299
    pranjalranjan299 over 6 years ago

    Great demo Prashanth Kumar G N ! Your blog on AudioZero helped me as well image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • prashanth.nagendrappa
    prashanth.nagendrappa over 6 years ago in reply to krishnal

    Thank You Krishna

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • krishnal
    krishnal over 6 years ago

    Nice demo

    Good idea smart voice synthesizer visualizer

    Prashanth Kumar G N

     

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
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