The Porsche Chatbot API is a powerful tool for integrating a chatbot with speech-to-text and text-to-speech functionality into Porsche-related applications. This API provides a seamless interface for interacting with the chatbot and leveraging cutting-edge language models for natural language processing.
- Chatbot Integration: Easily integrate a chatbot into your Porsche-related applications.
- Speech-to-Text: Convert spoken input into text for processing by the chatbot.
- Text-to-Speech: Convert text responses from the chatbot into spoken audio.
- Language Model Interaction: Access state-of-the-art language models for advanced natural language understanding.
- Web Scraping: Optional functionality for scraping data from the web to enhance the chatbot's capabilities.
- Clone the repository:
- Navigate to the project directory:
- Install dependencies:
git clone (https://github.com/Bit-Barron/PorscheChatbot.git)
cd PorscheChatbot
pip install -r requirements.txt
Set up environment variables by creating environment variables
Add your OpenAI key as environment var should be named as: OPENAI_API_KEY
- Start the Flask server:
- Access the API endpoints using tools like
curl
,Postman
, or by integrating with your application.
python api/api.py
/api/get_solutions
: Endpoint for interacting with the chatbot and get Solutions./api/create_voice
: Endpoint for converting speech to text./api/scrape_data
: Endpoint for getting scraped data from: https://ask.porsche.com/.
import requests
url = "http://127.0.0.1/scrape_data/"
data = {"input": "What is the top speed of the latest Porsche 911?"}
response = requests.post(url, json=data)
print(response.json())
<
Contributions are welcome! Feel free to open issues for feature requests, bug fixes, or general improvements. Pull requests are also appreciated.
This project is licensed under the MIT License. See the LICENSE file for details.