The Speechify project consists of two main components: Azure Functions and an API. These components work together to process images, extract text from them, generate audio files, and provide an interface for uploading files and checking processing status.
The Azure Functions project is responsible for processing images stored in Azure Blob Storage. It utilizes Azure Cognitive Services for text extraction and Azure Speech Services for audio generation. Here's an overview of its features:
The Azure Functions project processes images stored in Azure Blob Storage, extracts text from them using Azure Cognitive Services, and generates audio files from the extracted text. It tracks the processing status of each operation using Azure Table Storage.
The API project serves as an interface for uploading files to Azure Blob Storage and checking the status of processing tasks initiated by the Azure Functions project. Here's an overview of its features:
The API project provides endpoints for uploading files to Azure Blob Storage and querying the status of processing tasks. It interacts with Azure Blob Storage and other services to facilitate these operations.
Clone the Repository: Start by cloning the Speechify repository from the version control system (e.g., GitHub) to your local machine.
Navigate to Azure Functions Directory: In your terminal or command prompt, navigate to the directory containing the Azure Functions project within the Speechify repository.
Create App Settings:
appsettings.json
file in the Azure Functions project directory.appsettings.json
file with the necessary configuration values for Azure services and other settings as outlined earlier.appsettings.json
:{
"ConnectionStrings": {
"SpeechifyStorageConnectionString": "YOUR_STORAGE_CONNECTION_STRING"
},
"TextEndpoint": "YOUR_AZURE_COGNITIVE_SERVICES_TEXT_ENDPOINT",
"TextKey": "YOUR_AZURE_COGNITIVE_SERVICES_TEXT_KEY",
"SpeechSubscriptionKey": "YOUR_AZURE_SPEECH_SERVICES_SUBSCRIPTION_KEY",
"SpeechRegion": "YOUR_AZURE_SPEECH_SERVICES_REGION"
}
Build and Run the Project:
dotnet build
) to build the Azure Functions project.Deploy to Azure (Optional):
Test Functionality:
Troubleshooting and Debugging:
Navigate to API Directory: In your terminal or command prompt, navigate to the directory containing the API project within the Speechify repository.
Create App Settings:
appsettings.json
file in the API project directory.appsettings.json
file with the necessary configuration values for Azure Blob Storage and API URL as outlined earlier.appsettings.json
:{
"ConnectionStrings": {
"BlobStorageConnectionString": "YOUR_BLOB_STORAGE_CONNECTION_STRING"
},
"ApiUrl": "YOUR_API_URL"
}
Build and Run the Project:
dotnet build
) to build the API project.Deploy to Azure (Optional):
Test Functionality:
Troubleshooting and Debugging:
MIT