This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const callElevenLabsTextToSpeechAPI = async (text) => { | |
| if (!text) return "Text parameter can't be null"; | |
| const [rachel, anntoni] = ["21m00Tcm4TlvDq8ikWAM", "ErXwobaYiN019PkySvjV"]; | |
| const url = `https://api.elevenlabs.io/v1/text-to-speech/${rachel}`; | |
| const apiKey = process.env.ELEVENLABS_KEY; | |
| const headers = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //1 | |
| yarn add react-native-sse | |
| yarn add react-native-url-polyfill | |
| //2 | |
| import EventSource from "react-native-sse"; | |
| import "react-native-url-polyfill/auto"; | |
| //3 | |
| const OPENAI_KEY = '<your-openai-api-key>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.4; | |
| import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| contract Fiat is ERC20, ERC20Burnable, Ownable { | |
| constructor() ERC20("Fiat", "FIAT") { | |
| _mint(msg.sender, 1000 * 10 ** decimals()); |
NewerOlder