Skip to content

MalayBhunia/Smart_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

🧠 Smart Calculator (Voice + Text)

An advanced Python-based calculator that supports both keyboard input and voice commands, capable of performing arithmetic operations, number analysis, and sequence generation.

πŸš€ Features

πŸŽ™οΈ Dual Input System

  • Keyboard-based input
  • Voice input using speech recognition

βž• Arithmetic Operations

  • Addition, Subtraction, Multiplication
  • Division, Modulus, Power

πŸ”’ Number Functions

  • Factorial, Square, Cube
  • Square Root

πŸ” Number Properties

  • Prime check
  • Even / Odd detection

πŸ”„ Sequences

  • Fibonacci series generation

πŸ”Š Voice Output

  • Speaks results using text-to-speech

πŸ› οΈ Tech Stack

  • Python
  • speech_recognition
  • pyttsx3
  • math

πŸ“‚ Project Structure

smart-calculator/
│── main.py
│── README.md

βš™οΈ Installation

pip install SpeechRecognition pyttsx3

⚠️ For microphone support, you may also need:

pip install pyaudio

▢️ Usage

Run the program:

python main.py

πŸ’¬ Example Commands

πŸ–₯️ Text Input

add 5 and 10
square 7
factorial 5

🎀 Voice Input

  • "Multiply 6 and 8"
  • "Find square root of 25"
  • "Check prime 13"

⚠️ Error Handling

  • Prevents division by zero
  • Validates input type
  • Handles invalid commands gracefully

πŸ’‘ Future Improvements

  • GUI version (Tkinter / Web App)
  • Advanced NLP understanding
  • More mathematical operations
  • Multi-language voice support

🏷️ Tags

python, calculator, voice-recognition, text-to-speech, smart-calculator, beginner-project

πŸ“œ License

This project is open-source and available under the MIT License.

About

πŸ’™ My first project β€” a smart calculator with voice and text input built using Python. This project reflects my initial journey into programming, problem-solving, and building real-world applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages