Giter Site home page Giter Site logo

lovemate's Introduction

NPM Version NPM Monthly Downloads

Last Commit Language Most Used Implementations Repository Size

Forks Stars Watches

Author GitHub

lovemate ๐Ÿ’–๐ŸŽต

lovemate is a fun npm package designed to express affectionate phrases in various languages through voice.

Table of Contents

Description

Solumate provides an extensive repertoire of romantic phrases in over 30+ languages, each complemented by a voice recording, text, and voice URL. Users can leverage these features to convey their affection to their loved ones with ease. Simply install the package and execute it to access a diverse array of heartfelt expressions, enhancing your communication in a myriad of languages.

Currently, users can hear the phrases in a female voice, with plans to add male voice options in the future.

Supported Languages

lovemate supports a wide range of languages, including:

  • af-ZA: Afrikaans (South Africa)
  • ar-XA: Arabic (Gulf)
  • bn-IN: Bengali (India)
  • cs-CZ: Czech (Czech Republic)
  • da-DK: Danish (Denmark)
  • de-DE: German (Germany)
  • el-GR: Greek (Greece)
  • en-AU: English (Australia)
  • en-GB: English (United Kingdom)
  • en-IN: English (India)
  • en-US: English (United States)
  • es-ES: Spanish (Spain)
  • es-US: Spanish (United States)
  • fi-FI: Finnish (Finland)
  • fil-PH: Filipino (Philippines)
  • fr-CA: French (Canada)
  • fr-FR: French (France)
  • hi-IN: Hindi (India)
  • hu-HU: Hungarian (Hungary)
  • id-ID: Indonesian (Indonesia)
  • it-IT: Italian (Italy)
  • ja-JP: Japanese (Japan)
  • ko-KR: Korean (South Korea)
  • nb-NO: Norwegian (Norway)
  • nl-NL: Dutch (Netherlands)
  • pl-PL: Polish (Poland)
  • pt-BR: Portuguese (Brazil)
  • pt-PT: Portuguese (Portugal)
  • ru-RU: Russian (Russia)
  • sk-SK: Slovak (Slovakia)
  • sv-SE: Swedish (Sweden)
  • ta-IN: Tamil (India)
  • tr-TR: Turkish (Turkey)
  • uk-UA: Ukrainian (Ukraine)
  • vi-VN: Vietnamese (Vietnam)
  • zh-CN: Chinese (Mandarin, Simplified)
  • zh-HK: Chinese (Cantonese, Traditional)
  • zh-TW: Chinese (Mandarin, Traditional)

Dependencies and API

lovemate uses the following npm packages:

  • google-tts-api: This package is used to generate the audio files from the translated phrases.
  • google-translate-api-x: This package is used to translate the phrases into the desired language.
  • play-sound: This package is used to play the generated audio files.

In addition, lovemate uses the quotable.io API to fetch random love quotes.

Installation

To install lovemate, use npm or yarn:

npm install lovemate

or

yarn add lovemate

Usage

const lovemateVoice = require("lovemate");

(async () => {
  try {
    const language = "bn-IN"; // Specify the language (e.g., 'en-US' for English, 'es-ES' for Spanish, etc.)
    const phrase = await lovemateVoice(language); // for English you don't need to pass the language parameter
    console.log("Message played successfully!", phrase);
  } catch (error) {
    console.error("Error:", error.message);
  }
})();

๐Ÿ“œ License

Copyright ยฉ 2023 Md. Muhtasim Fuad Fahim

This project is licensed under the MIT License. This license allows you to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software. However, you must include the original copyright notice and disclaimers.

For more information about this license, please visit MIT License.

๐Ÿ‘ค Author

๐Ÿค“ Md. Muhtasim Fuad Fahim [email protected]

๐Ÿ“ Contribution

Contributions, issues, and feature requests are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  • Fork the Project
  • Create your Feature Branch (git checkout -b feature/AmazingFeature)
  • Commit your Changes (git commit -m 'Add some AmazingFeature')
  • Push to the Branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

Feel free to check the issues page for any existing issues or to create a new one.

  • Contributions, issues and features requests are welcome!
  • ๐Ÿ“ฎ Submit PRs to help solve issues or add features
  • ๐Ÿ› Find and report issues
  • ๐ŸŒŸ Star the project

lovemate's People

Contributors

mdmuhtasimfuadfahim 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.