Rapid account: kelvin

kelvin / kelvin2go

love to make gadget / platform play with nodejs / php open to join any fun projects

讨论区

20
Title
Created at (Click to sort ascending)
A
3
@robinsonjessie Whats your needs on the text to speech ? via your website ? Sat 9:13 10/2/24
A
2
It looks like you're encountering an issue with an API key, particularly with RapidAPI. If you're seeing the message "Invalid API key," it means that the API key you're using is either incorrect or has been disabled. Here are some steps you can take to address this issue: Check the API Key: Make sure you have copied the API key correctly. Sometimes, extra spaces or characters can cause issues. Verify that the key matches the one provided by RapidAPI. API Key Status: Ensure that the API key is still valid and hasn't expired. API providers may deactivate keys for various reasons, so it's a good idea to check the status of your key on the RapidAPI platform. Key Permissions: Confirm that the API key has the necessary permissions to access the specific endpoint or service you're trying to use. Some APIs have different tiers of access, and your key may not have the required permissions. RapidAPI Documentation: Visit the RapidAPI documentation (https://docs.rapidapi.com/docs/keys-and-key-rotation) for information on troubleshooting issues related to API keys. They may have specific guidelines or FAQs that can help you resolve the problem. Contact RapidAPI Support: If you've checked everything and still can't resolve the issue, consider reaching out to RapidAPI support for assistance. They can provide specific guidance based on your account and the API you're trying to access. Remember to handle API keys securely and avoid sharing them publicly. If needed, regenerate your API key following the instructions provided by the API provider or RapidAPI. Fri 3:15 17/11/23
A
3
@robinsonjessie Whats your needs on the text to speech ? via your website ? Sat 9:13 10/2/24
A
2
Male voice is available on paid plan. let me know if you subscribe. Sat 8:13 28/10/23
A
2
The format is in 'Content-Type', 'audio/mpeg' If calling from browser this can directly play within chrome. If you use in project like expressjs nodejs, you can do something like: download mp3 ```js const express = require('express'); const app = express(); app.get('/download', (req, res) => { // Simulated audio stream const audioStream = getAudioStreamFromEndpoint(); // Replace this with your endpoint to get the audio stream // Set the response headers res.set('Content-Type', 'audio/mpeg'); res.set('Content-Disposition', 'attachment; filename="audio.mp3"'); // Pipe the audio stream to the response audioStream.pipe(res); }); app.listen(3000, () => { console.log('Server is running on port 3000'); }); ``` Or directly steam it ``` app.get('/audio', (req, res) => { // Simulated audio stream const audioStream = getAudioStreamFromEndpoint(); // Replace this with your logic to get the audio stream // Set the response headers res.set('Content-Type', 'audio/mpeg'); res.set('Content-Disposition', 'inline'); // Send the audio stream audioStream.pipe(res); }); ``` Fri 3:46 7/7/23
A
4
Whats language of BE do you use? i can give a example for that Mon 5:24 3/7/23