teleren/devto huggingface dataset:
Five APIs for AI text-to-speech 🗣️
Published: 2024-01-02 18:02:03

If you need to narrate text to audio, there are a number of great sounding services which provide APIs. Many have generous free tiers! See below for a comparison:

## Summary
| Service & Quality | Cost to Narrate The Sorcerer's Stone | Cost to Narrate the Harry Potter Series | Sample |
|-------------------|--------------------------------------|----------------------------------------|---|
| OpenAI (Standard) | $6.75                                | $100.50                                |
| OpenAI (HD)       | $13.50                               | $201.00                                | [Audio](https://cdn.openai.com/API/docs/audio/alloy.wav) |
| ElevenLabs (HD)   | $13.20                               | $200.70                                | [Audio](https://eleven-public-cdn.elevenlabs.io/audio-native/d65e433fd8a560cbba1b7dd26809dd48ea2b408c5b6c0a3e42e5b83c43957f5b/l6Ny6oxjkcyU0bEadlHi.mp3) |
| Google Cloud (Standard) | Free                           | $10.80                                 |
| Google Cloud (Neural)  | Free                           | $91.20                                 | [Audio](https://cloud.google.com/static/text-to-speech/docs/audio/en_us_neural2_d.wav) |
| Google Cloud (Studio) | $56.00                        | $1,056.00                              | [Audio](https://cloud.google.com/static/text-to-speech/docs/audio/en_us_studio_o_gatsby.wav) |
| Amazon Polly (Standard) | Free                           | $2.28                                  | [Audio](https://whyp.it/tracks/146916/polly-standard?token=Vy2CR) |
| Amazon Polly (Neural)  | Free                           | $9.12                                  | [Audio](https://whyp.it/tracks/146915/polly-neural?token=Z4g9d) |
| Amazon Polly (Long-form) | Free                          | $62.00                                 | [Audio](https://whyp.it/tracks/146914/polly-long-form?token=Jp98b) |

The Sorcerer's Stone is 450,000 characters and the Harry Potter series is 6,700,000 characters.

## Pricing plans per service

### OpenAI
Standard: $0.015 / 1K characters
HD: $0.030 / 1K characters
https://openai.com/pricing

### ElevenLabs
HD: $.030 / 1K characters (first 10,000 are free)
Note: Pricing scales down to $.017 in higher tiers.
https://elevenlabs.io/pricing

### Google Cloud
Standard: $0.004 / 1K characters (first 4,000,000 are free)
Neural: $0.016 / 1K characters (first 1,000,000 are free)
Long-form: $0.16 / 1K characters (first 100,000 are free)
https://cloud.google.com/text-to-speech/pricing

### Amazon Polly
Standard: $0.0004 / 1K characters (first 5,000,000 are free)
Neural: $0.0016 / 1K characters (first 1,000,000 are free)
Long-form: $0.01 / 1K characters (first 500,000 are free)
https://aws.amazon.com/polly/pricing/
Wanna learn Vim - Get yourself a 60% keyboard
Tags: vim, productivity, motivation, learning
Published: 2024-01-02 19:16:57

Everyone's talking about vim, it's everywhere, and chances are you at some point have considered adapting this not quiet as new editor. Chances are also that you got your pre-configured *neovim* configuration set up to just the next day choosing vscode when turning you computer back on again.

With the new year rolling in (*Happy 2024 everyone!*) it's time for change, to create new habits, and to switch to vim.

I'm not going to ramble about what *vim* is because if your here you most likely already have tried it and knows what is is. And if that's not the case [here's](https://www.vim.org) a link.

Like with most things in life you have to practice to become good at something, the only problem is that it's hard. It's extremely hard. To ease the learning curve while learning all of the new shortcuts and functions I believe you should **get yourself a 60% keyboard**.

Why you might ask. The answer is simple, to eliminate those pesky arrow keys (this is just an exaggeration, they are actually pretty great). And why is this so great, because either you click around with your mouse everywhere you want to go with your cursor, or you adapt the vim way and use the regular keyboard keys. In my experience there's no way you choose the first method. Therefore your only *choice* would be to learn vim, or maybe use a [vim plugin for vscode](https://marketplace.visualstudio.com/items?itemName=vscodevim.vim) which at that point might just be a sign that you should stick with vscode. Because at the end of the day it doesn't really matter which editor you use as long as you like using it. And there's no editor to rule them all, but if you fell like learning vim I'd recommend you give this a try.
Open Source Word War
Tags: opensource, openmodels
Published: 2024-01-02 19:15:44

Collaboration is a core value in open source: the Internet Word War (II or III ? 🥱) is taking place on the meaning of open source.

A vision is being challenged by an ethical and economical wings of the (non-)open source community, and by the fact that the notion of open source may not be specific to software.

This conflict is crystallized around the Open Source Initiative [OSI] and the Open Source Definition [OSD], created in 1998.

What is open source (software) ? It depends.

The orthodox answer is that you are open source when you have software with its code freely available under a licence validated by the OSI.

Validated by the OSI mean (politically) compliant to the Open Source Definition. The OSD prohibits discrimination against « persons or groups » and « fields of endeavor », that's where conflicts take shape.

With the worrying evolution of the world but also as we realise the impact of open source in « surveillance capitalism, data harvesting, anti-immigrant violence, protester suppression [...] », some concerns arise on how to prevent bad usages. License are seen as a tool to limit them.

Open source is increasingly becoming a known economical approach for businesses. Some projects can be threatened by big tech, who can take the software and sell services with it. To protect themselves from these threats, dozens of organisations use license as a defence against these players.

Without claiming to judge whether their strategy is effective, they both include incompatible clauses with the OSD.

OSI, which claims to define open source, reject them to be qualified as open source. Defenders of OSD/OSI will say that they're not against that, just that they should call themselves something else. Source available, ethical source, shared source, post-open source, open code... whatever they want outside of "open source".

People involved for decades in open source communities find themselves not knowing how to define themselves, rejected by a significant part of the "open source community". If it's not open source, what is it?

Some of them are ending up on the conclusion that they are doing open source in a different flavor. We have multiple entity and players claiming that they represent open source.

« Ultimately, we are the heart and soul of FLOSS, not the Free Software Foundation or the Open Source Initiative or GitHub. » Coraline Ada Ehmke, founder of Organization for ethical source.

In addition to this internal conflict among IT specialists, open source seems to make sense in other areas such as open education and open hardware around sources of digital resources. Not considered by OSD/OSI and where restrictions on players or practices are much more common.

For basic linguistic reasons, the outcome of this war is certainly already determined. Performative definitions against popular phenomena are doomed to fail.

In the coming years, open source may be defined against the Open Source Initiative.
AI Spotlight: Breaking Down the Most Exciting News and Updates
Published: 2024-01-02 18:46:59

In the fast-paced realm of artificial intelligence (AI), staying abreast of the latest developments is paramount for professionals, enthusiasts, and businesses alike. The AI spotlight shines brightly on the most exciting news and updates, offering a comprehensive view of the ever-evolving landscape. Let's delve into the latest AI news and explore the groundbreaking updates that are shaping the future of AI.

The AI spotlight reveals a myriad of innovations, and the phrase "**[Latest AI News](https://aisurge.net)**" serves as our beacon, guiding us through the wealth of information that defines the cutting-edge in AI technology. From breakthroughs in machine learning to advancements in natural language processing (NLP), the Latest AI News encapsulates the pulse of the AI community, delivering real-time insights into the industry's most exciting developments.

One of the captivating areas highlighted by the Latest AI News is the continuous evolution of machine learning algorithms. AI researchers and developers are pushing the boundaries of what's possible, enhancing the adaptability and intelligence of AI systems. Whether it's the refinement of existing models or the creation of novel approaches, the spotlight on Latest AI News ensures that we are well-versed in the dynamic landscape of machine learning.

Natural language processing (NLP) takes center stage in the AI spotlight, with the Latest AI News showcasing remarkable strides in this field. NLP breakthroughs enable machines to understand and respond to human language nuances, fostering more meaningful interactions between users and AI systems. From chatbots to language translation, the potential applications of NLP advancements are vast and varied.

The Latest AI News also sheds light on the intersection of AI with other cutting-edge technologies. Whether it's the fusion of AI with blockchain for enhanced security or the collaboration of AI with the Internet of Things (IoT) for smarter connectivity, these crossovers mark exciting frontiers in the AI landscape. The AI spotlight captures these interdisciplinary collaborations, providing a holistic view of the synergies shaping the technological future.

Moreover, ethical considerations are integral to the Latest AI News. The AI spotlight emphasizes the importance of responsible AI development, addressing issues such as bias in algorithms and ensuring transparency in decision-making processes. By staying informed about the ethical dimensions of AI, businesses and practitioners contribute to the responsible advancement of this transformative technology.

In conclusion, the AI spotlight on the Latest AI News is a window into the most exciting developments in the field. As we break down the updates, we gain a deeper understanding of the technological advancements propelling AI forward. By staying engaged with the Latest AI News, we not only navigate the dynamic landscape of artificial intelligence but actively contribute to its evolution and responsible growth.
Ibuprofeno.py💊| #08: Explica este código Python
Tags: python, spanish, beginners, programming
Published: 2024-01-02 18:44:57

## **<center>Explica este código Python</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```py
list = [ x*5 for x in range(1,5)]
print(list)
```

- A. `[1, 2, 3, 4, 5]`
- B. `[5, 10, 15, 20]`
- C. `[5, 5, 5, 5, 5]`
- D. `SyntaxError`

---

Respuesta en el primer comentario.
Ibuprofeno.py💊| #07: Explica este código Python
Tags: python, programming, beginners, spanish
Published: 2024-01-02 18:42:40

## **<center>Explica este código Python</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```py
primos = [2,3,5,7,11]
for indice, primo in enumerate(primos):
  print(f"{indice} -> {primo}")
```

- A. 
```python
0 -> 2
1 -> 3
2 -> 5
3 -> 7
4 -> 11
```
- B. 
```python
1 -> 2
2 -> 3
3 -> 5
4 -> 7
5 -> 11
```
- C. 
```python
2 -> 0
3 -> 1
5 -> 3
7 -> 3
11 -> 4
```
- D. `SyntaxError`

---

Respuesta en el primer comentario.
The Twelve-Factor App: Concurrency
Tags: learning, writing, architecture, devjournal
Published: 2024-01-02 18:36:48

### Scale out via the process model

---

Web applications have various process execution forms. PHP, for example, processes function as child processes of Apache, starting based on request volume, while Java processes operate within a massive JVM uberprocess, managing concurrency internally through threads. These running processes are minimally visible to app developers. **In the context of the twelve-factor app, processes are crucial and they are a first-class citizen**, drawing inspiration from the unix process model for service daemons. This model allows developers to allocate different workloads to specific process types, such as handling HTTP requests through web processes and long running tasks through worker processes.

Moreover, while individual processes can handle internal multiplexing via threads or asynchronous/event-driven models, vertical scaling of an individual VM has limitations. The process model excels in scaling out, as the share-nothing, horizontally partitionable nature of twelve-factor app processes facilitates simple and reliable addition of concurrency.

Furthermore, the text emphasizes that twelve-factor app processes should refrain from daemonizing or writing PID files. Instead, reliance on the operating system’s process manager (like `systemd` or cloud platform-based distributed process managers) or tools such as `Foreman` during development is encouraged. These tools effectively manage output streams, handle crashed processes and address user-initiated restarts and shutdowns.

_This Twelve-Factor App post series is a means for me to consolidate the knowledge I've gained while studying these rules. Please feel free to visit [the site (https://12factor.net/) for more detailed explanations. That's all folks!_
The Hidden Secrets of AWS: Unveiling Lesser-Known Features and Hacks
Tags: aws, cloud, learning, career
Published: 2024-01-02 18:32:57

**Introduction**

Amazon Web Services (AWS) stands as the colossus of cloud computing, offering a multitude of services and tools to fuel the digital revolution. Beyond the widely-known offerings, AWS holds a vault of lesser-known treasures and hidden tricks that can transform your cloud experience. In this captivating exploration, we’ll venture into the realm of AWS’s best-kept secrets, unraveling the unconventional, and revealing how these features can revolutionise your cloud endeavours.

**The Enigmatic Powers of Amazon S3**


![AWS S3](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eztuxgus9dgrrn2ai8ve.png)


- **S3 as a Web Host**: Experience the magic of Amazon S3 as it transforms into a dynamic, scalable web hosting solution. Explore practical examples of website deployment.
- **Secrets of Object Locking**: Discover the world of object locking, unlocking immutable storage, and fortifying data security. Learn how this feature can safeguard critical data.
- **S3 Select**: Query at the Speed of Thought: Dive into the lightning-fast world of S3 Select, where complex data retrieval becomes a breeze. Real-world use cases demonstrate its power.


**Lambda’s Hidden Potential**


![AWS Lambda](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dqc2ieg49vrghma39f1q.png)

- **Lambda Layers**: The Secret to Code Reusability: Uncover the true potential of Lambda Layers in streamlining your serverless applications. Practical examples showcase code reusability.
- **Step Functions**: Mastering State Machines: Delve into AWS Step Functions and learn how to create intricate, stateful workflows effortlessly. Real-world scenarios demonstrate its orchestration power.
- **Lambda Destinations**: Effortless Event Routing: Take control of event handling with Lambda Destinations. Discover its capabilities through hands-on demonstrations.

Check more details:
- [Cost Optimization Magic](https://codesolutionshub.com/2023/09/13/the-hidden-secrets-of-aws-unveiling-lesser-known-features-and-hacks/)
- [DynamoDB’s Hidden Gems](https://codesolutionshub.com/2023/09/13/the-hidden-secrets-of-aws-unveiling-lesser-known-features-and-hacks/)
- [AI and IoT Revelations](https://codesolutionshub.com/2023/09/13/the-hidden-secrets-of-aws-unveiling-lesser-known-features-and-hacks/)
Making clean API requests to the Backend with URLSearchParams in React.
Tags: webdev, frontend, cleancode, react
Published: 2024-01-02 18:16:53


In the earlier days of crafting URLs in my React projects, I leaned on the trusty technique of String Interpolation for wrangling those pesky URL parameters. Sure, it got the job done, but deep down, it felt a bit off, like wearing mismatched socks – functional working, yet not quite right. The code lacked the finesse I yearned for, and as the project grew, the unease lingered. If you've ever sensed that discomfort when using String Interpolation for URL parameters, you're not alone. Let's explore a more fitting solution that not only does the job but does it with a touch of elegance. 
<img src="https://media.giphy.com/media/JqDeI2yjpSRgdh35oe/giphy.gif" alt="rachel tada" />
Enter ---> a cleaner and more structured approach using **URLSearchParams** in React.

"URLSearchParams" is a built-in JavaScript object that allows you to work with the query string of a URL. It provides methods for appending, deleting, getting, and setting key-value pairs in the query string. 

Here is how we can utilize URLSearchParams for clean API. 

```
 const queryParams = new URLSearchParams();
 queryParams.append("limit", "10");
 queryParams.append("offset", offset);
 if (isActive) {
   queryParams.append("active", "true");
 }

 const params = `?${queryParams.toString()}`;
 const url = `${api}${params}`;
```
We create a new instance of URLSearchParams to manage our URL parameters. The append method adds parameters to the URLSearchParams instance. Here, we add "limit" with a static value of "10," "offset" with a dynamic value, and "active" conditionally. The if (isActive) statement ensures that the "active" parameter is appended only if the isActive variable is truthy. We construct the query string using queryParams.toString(). Finally, we combine the base API URL (api) with the constructed query string to form the complete URL.

**Advantages**:
1. Structured Parameters: Each parameter is appended individually, enhancing readability.
2. Conditional Appending: Conditions for appending parameters are clearer.
3. Dynamic Values: Easily accommodates dynamic values.
4. Automatic Encoding: Takes care of encoding special characters, reducing the risk of errors.

While both approaches achieve the same result, the URLSearchParams approach is cleaner, more readable, and easier to maintain, especially as our project complexity increases. If you have found a better way, feel free to share it in the COMMENTS. Do REACT and FOLLOW ME to hear more from me.

REFERENCE: 
[UrlSearchParams in JS](https://medium.com/swlh/urlsearchparams-in-javascript-df524f705317)
[What is urlsearchparams in javascript](https://www.shecodes.io/athena/27068-what-is-urlsearchparams-in-javascript)
Persuasion Power: Creating Successful Sales Proposal Presentations
Tags: salesproposalpresentation, salesppt, aisalesppt, freeproposalpresentation
Published: 2024-01-02 18:03:03

Use [Simplified AI Presentation Maker](https://simplified.com/ai-presentation-maker/sales-proposal) to automatically generate a unique and fully customizable presentation, while your team can collaborate and make it more effective. From the font, text, color, images, and sounds, you have all the power to create amazing designs while saving time and effort! Use our Preview Feature to Present or share it with your stakeholders
Git - Cheat Sheet: A Quick Guide to Git Commands
Published: 2024-01-02 17:52:38

Git, the ubiquitous version control system, empowers developers to efficiently manage their codebase. Whether you're a Git novice or a seasoned pro, having a cheat sheet handy can be a game-changer. Let's explore a comprehensive Git cheat sheet to help you navigate your repositories with ease.

## 1. **Setting Up Git:**
   - **Configure User Information:**
     ```bash
     git config --global user.name "Your Name"
     git config --global user.email "your@email.com"
     ```

   - **Initialize a Repository:**
     ```bash
     git init
     ```

## 2. **Basic Commands:**
   - **Clone a Repository:**
     ```bash
     git clone <repository_url>
     ```

   - **Check Repository Status:**
     ```bash
     git status
     ```

   - **Add Changes to Staging:**
     ```bash
     git add <file_name>
     ```

   - **Commit Changes:**
     ```bash
     git commit -m "Your commit message"
     ```

## 3. **Branching:**
   - **Create a New Branch:**
     ```bash
     git branch <branch_name>
     ```

   - **Switch to a Branch:**
     ```bash
     git checkout <branch_name>
     ```

   - **Merge Branches:**
     ```bash
     git merge <branch_name>
     ```

   - **Delete a Branch:**
     ```bash
     git branch -d <branch_name>
     ```

## 4. **Remote Repositories:**
   - **Add a Remote Repository:**
     ```bash
     git remote add origin <repository_url>
     ```

   - **Push to a Remote Repository:**
     ```bash
     git push -u origin <branch_name>
     ```

   - **Pull Changes from a Remote Repository:**
     ```bash
     git pull origin <branch_name>
     ```

## 5. **Undoing Changes:**
   - **Discard Changes in Working Directory:**
     ```bash
     git checkout -- <file_name>
     ```

   - **Undo the Last Commit:**
     ```bash
     git reset --soft HEAD
     ```

   - **Discard Changes in Staging:**
     ```bash
     git reset <file_name>
     ```

## 6. **Log and History:**
   - **View Commit History:**
     ```bash
     git log
     ```

   - **Show Changes in a Commit:**
     ```bash
     git show <commit_hash>
     ```

   - **Compare Branches:**
     ```bash
     git diff <branch1> <branch2>
     ```

## 7. **Tagging:**
   - **Create a Lightweight Tag:**
     ```bash
     git tag <tag_name>
     ```

   - **Create an Annotated Tag:**
     ```bash
     git tag -a <tag_name> -m "Tag message"
     ```

   - **Push Tags to Remote Repository:**
     ```bash
     git push origin --tags
     ```

This Git cheat sheet serves as a quick reference, aiding you in mastering the essential commands for version control. Keep it handy on your desk or bookmarked in your browser for those moments when you need a quick Git command refresher. Happy coding!