{"id":25430741,"url":"https://github.com/kryptonbd/speakeasyjs","last_synced_at":"2026-04-24T16:03:41.396Z","repository":{"id":275094170,"uuid":"924607023","full_name":"KryptonBD/SpeakEasyJS","owner":"KryptonBD","description":"Text-to-speech translator web app powered by Google Translate API and Web Speech API","archived":false,"fork":false,"pushed_at":"2025-01-30T10:27:04.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T13:00:00.486Z","etag":null,"topics":["nodejs","text-to-speech","vanilla-javascript","webspeech-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KryptonBD.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-30T10:26:23.000Z","updated_at":"2025-01-30T10:28:08.000Z","dependencies_parsed_at":"2025-01-31T07:06:17.098Z","dependency_job_id":"2cd0c6be-4540-4f3b-b7cd-d1765c79bc43","html_url":"https://github.com/KryptonBD/SpeakEasyJS","commit_stats":null,"previous_names":["kryptonbd/speakeasyjs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FSpeakEasyJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FSpeakEasyJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FSpeakEasyJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KryptonBD%2FSpeakEasyJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KryptonBD","download_url":"https://codeload.github.com/KryptonBD/SpeakEasyJS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239231079,"owners_count":19603990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs","text-to-speech","vanilla-javascript","webspeech-api"],"created_at":"2025-02-17T03:47:58.012Z","updated_at":"2025-10-31T21:30:29.993Z","avatar_url":"https://github.com/KryptonBD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpeakEasy\r\n\r\nSpeakEasy is a web application that enables real-time text translation and text-to-speech functionality. Users can input text, select their desired language, and have the translated text read aloud in various voices.\r\n\r\n## Features\r\n\r\n- Real-time text translation using Google Translate API\r\n- Text-to-speech capability with multiple voice options\r\n- Support for multiple languages including English, Spanish, German, and Bengali (can add more)\r\n- Clean, responsive user interface built with Tailwind CSS\r\n- Simple server implementation with basic static file serving\r\n\r\n## Project Structure\r\n\r\n```\r\nproject/\r\n├── api/\r\n│   └── index.js    # Backend server implementation\r\n└── public/\r\n    ├── index.html  # Frontend user interface\r\n    └── main.js     # Frontend JavaScript logic\r\n```\r\n\r\n## Prerequisites\r\n\r\n- Node.js\r\n- Google Cloud Platform account with Translation API enabled\r\n- API key for Google Translate\r\n\r\n## Setup\r\n\r\n1. Clone the repository\r\n2. Create a `.env` file in the root directory with the following variables:\r\n   ```\r\n   GOOGLE_TRANSLATE_API_KEY=your_api_key_here\r\n   PORT=3000\r\n   ```\r\n3. Install dependencies:\r\n   ```bash\r\n   npm install\r\n   ```\r\n\r\n## Running the Application\r\n\r\n1. Start the server:\r\n   ```bash\r\n   node api/index.js\r\n   ```\r\n2. Access the application at `http://localhost:3000`\r\n\r\n## Technical Details\r\n\r\n### Backend (`api/index.js`)\r\n\r\n- Built with Node.js using native `http` and `https` modules\r\n- Handles translation requests to Google Translate API\r\n- Serves static files\r\n- Implements basic error handling and security measures\r\n\r\n### Frontend (`public/`)\r\n\r\n- HTML5 with Tailwind CSS for styling\r\n- Vanilla JavaScript for DOM manipulation and API requests\r\n- Uses Web Speech API for text-to-speech functionality\r\n- Responsive design that works across different screen sizes\r\n\r\n## API Endpoints\r\n\r\n### POST `/translate`\r\n\r\nTranslates text to the specified target language.\r\n\r\nRequest body:\r\n\r\n```json\r\n{\r\n  \"text\": \"Hello, world!\",\r\n  \"targetLanguage\": \"es\"\r\n}\r\n```\r\n\r\nResponse:\r\n\r\n```json\r\n{\r\n  \"data\": {\r\n    \"translations\": [\r\n      {\r\n        \"translatedText\": \"¡Hola Mundo!\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptonbd%2Fspeakeasyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkryptonbd%2Fspeakeasyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkryptonbd%2Fspeakeasyjs/lists"}