Job Description:
Title: Integrate Node.js Text-to-Speech & Translation App with WordPress Blog
Description:
I need a skilled developer to integrate a custom Node.js application with my WordPress blog, specifically on the following post: [login to view URL] The post's index is 91390.
The application utilizes the Google Cloud Text-to-Speech and Translation APIs to provide text-to-speech functionality in multiple languages with optional translation.
Work Completed So Far:
A Node.js server has been developed using Express.js.
The server successfully integrates with the Google Cloud Text-to-Speech and Translation APIs.
The server can receive text and a language code, translate the text (if needed), synthesize it into speech, and return the audio data.
The server is ready to be deployed to a hosting platform (e.g., Heroku, Google Cloud Run, AWS, etc.).
A basic HTML structure with a "Play Audio" button, a language selection dropdown, and divs for displaying translated text has been created.
Frontend JavaScript code has been written to send requests to the Node.js server and handle the audio playback.
The Google Cloud project is set up, the APIs are enabled, and a service account with a JSON key file is ready.
The GOOGLE_APPLICATION_CREDENTIALS environment variable has been configured locally.
Tasks:
1. Deploy the Node.js Server: Deploy the existing Node.js server code to a suitable hosting platform (e.g., Heroku, Google Cloud Run, AWS, DigitalOcean). Configure the GOOGLE_APPLICATION_CREDENTIALS environment variable on the server using the provided JSON key file.
2. Integrate with WordPress: Integrate the provided HTML and JavaScript code into the specified WordPress page.
3. Connect Frontend to Backend: Ensure the JavaScript on the WordPress page correctly sends requests to the deployed server's API endpoint (e.g., /synthesize-speech). The JavaScript code needs to send the text content of the post (found in the main-content div) and the selected language code.
4. Handle Audio Playback and Translation Display: The JavaScript should handle the audio playback received from the server and update the translated-content div with the translated text.
5. Ensure Security: Implement appropriate security measures, such as configuring CORS on the server to allow requests only from your WordPress domain and handling the Google Cloud service account key securely on the server.
Required Skills:
Node.js: Strong proficiency in Node.js and Express.js.
Google Cloud APIs: Experience with Google Cloud Text-to-Speech and Translation APIs.
API Integration: Proven experience integrating with third-party APIs.
WordPress Development: Familiarity with WordPress, including modifying themes or creating custom plugins (depending on the chosen integration method).
JavaScript: Strong JavaScript skills for frontend development and making API requests.
HTML: Good understanding of HTML for structuring the page elements.
Server Deployment: Experience deploying Node.js applications to at least one of the following platforms: Heroku, Google Cloud Run, AWS, DigitalOcean, or similar.
Security Best Practices: Understanding of security best practices for web applications and API integrations.
Bonus Skills:
Experience with other cloud platforms.
Familiarity with different hosting environments.
Deliverables:
Deployed Node.js server with a working API endpoint.
Fully integrated TTS and translation functionality on the specified WordPress page.
Clear instructions on how to maintain and update the server and the integration.
To Apply:
Please provide:
Your relevant experience with similar projects.
Your proposed approach for deploying the server and integrating it with WordPress.
Your estimated timeline and cost for completing the project.
--- End of Job Description ---