Overview

Experience the perfect blend of quality and ingenuity.
Specialising in designing & manufacturing custom-engineered valve solutions to meet unique industrial challenges. Our expertise extends to providing comprehensive solutions in pressure, flow, level, and temperature control for various sectors. This focus ensures our clients receive innovative, effective strategies for their plant operations, enhancing efficiency and addressing specific operational needs. IndiTech’s commitment lies in delivering excellence in valve technology to optimise and streamline complex industrial processes.
To manage your audio scripts and URLs effectively, you can use an Excel sheet to list all URLs and their corresponding audio scripts. Here's a step-by-step guide on how to set this up: Step-by-Step Guide 1. Create Your Excel Sheet Open Excel: Start by opening a new Excel workbook. Set Up Columns: Create the following columns: Column A: Page URL Column B: Audio Script You can also add additional columns for notes or status if needed. Enter Data: Fill in each row with the URL of the page and the corresponding audio script. Example Layout Page URL Audio Script https://example.com/home Welcome to our homepage! Here at Example Co... https://example.com/about Our mission at Example Co. is to provide... https://example.com/contact Get in touch with us at Example Co. for any... 2. Use JavaScript to Fetch and Play Audio Scripts To dynamically fetch and play the audio scripts from your Excel sheet, you can convert the Excel data to a format that can be read by JavaScript (such as JSON) and then use a script to play the corresponding audio based on the current page URL. 3. Convert Excel to JSON Export Excel Data: Save your Excel sheet as a CSV file. Convert CSV to JSON: Use an online converter or a script to convert the CSV file to JSON format. The JSON file will look something like this: json Copy code [ { "url": "https://example.com/home", "script": "Welcome to our homepage! Here at Example Co..." }, { "url": "https://example.com/about", "script": "Our mission at Example Co. is to provide..." }, { "url": "https://example.com/contact", "script": "Get in touch with us at Example Co. for any..." } ] 4. Add JavaScript to Your WordPress Site Upload JSON File: Upload the JSON file to your WordPress site's media library or a public folder. Edit Theme Files: Add the following JavaScript code to your theme's functions.php file or a custom JavaScript file: javascript Copy code document.addEventListener('DOMContentLoaded', function() { fetch('URL_TO_YOUR_JSON_FILE') .then(response => response.json()) .then(data => { const currentUrl = window.location.href; const audioScript = data.find(page => page.url === currentUrl); if (audioScript) { const audio = new SpeechSynthesisUtterance(audioScript.script); window.speechSynthesis.speak(audio); } }) .catch(error => console.error('Error fetching audio scripts:', error)); }); Replace Placeholder: Replace URL_TO_YOUR_JSON_FILE with the actual URL of the JSON file you uploaded. 5. Test and Deploy Test: Visit each page on your website to ensure the correct audio script is being played. Deploy: Once tested, deploy the changes to your live site. Maintenance To update or add new audio scripts, simply: Update the Excel sheet. Export the updated sheet to CSV and convert to JSON. Upload the new JSON file to your site, replacing the old one. This method keeps your audio scripts organized and allows easy updates by simply modifying the Excel sheet and regenerating the JSON file. make it easy for not technical perosn ChatGPT To make this process easier for a non-technical person, we can break it down into simple, manageable steps. Here’s a straightforward approach using Excel and a WordPress plugin: Step-by-Step Guide for Non-Technical Users 1. Create Your Excel Sheet Open Excel: Start by opening a new Excel workbook. Set Up Columns: Create the following columns: Column A: Page URL Column B: Audio Script Enter the URLs of your web pages in Column A and the corresponding audio scripts in Column B. Example Layout Page URL Audio Script https://example.com/home Welcome to our homepage! Here at Example Co... https://example.com/about Our mission at Example Co. is to provide... https://example.com/contact Get in touch with us at Example Co. for any... Save Excel Sheet: Save the Excel sheet to a known location on your computer. 2. Use a Plugin to Play Audio Scripts To make the process easier, we will use a WordPress plugin that allows us to execute custom code snippets. Install a Plugin for Custom Code Go to your WordPress admin dashboard. Navigate to Plugins > Add New. Search for "Head & Footer Code" or "Insert Headers and Footers". Install and activate the plugin. Add Custom JavaScript Go to Settings > Insert Headers and Footers. In the Scripts in Footer section, add the following script: html Copy code Replace the URLs and scripts in the audioScripts variable with the ones from your Excel sheet. Save Changes Click Save to apply the changes. 3. How to Update Audio Scripts Whenever you need to update or add new audio scripts: Update Your Excel Sheet: Modify the URLs and scripts as needed. Update the Plugin Script: Copy the new scripts from your Excel sheet and update the JavaScript code in the Insert Headers and Footers plugin settings. Maintenance Here’s a quick summary to make it easy to remember: Step 1: Keep your Excel sheet updated with URLs and scripts. Step 2: Copy the updated scripts into the JavaScript code in the Insert Headers and Footers plugin settings. This approach simplifies the process, allowing you to manage your audio scripts through a familiar Excel interface and a user-friendly WordPress plugin.