アプリ関連ニュース
- 2022年9月16日
- 技術情報
Flutter でText-to-speech を行う方法
最近Flutterで仕事をすることになり
勉強したこと、調査されたことを共有したいと思います。
Flutterでテキストを音声に変換したりプログラムです。
さまざまな言語、音量、ピッチ、スピードなどを設定することができます。
今の例では、言語を英語に設定していますが、もし日本語にしたい場合は、以下のように設定することができます。
flutterTts.setLanguage("ja-JP")
利用するためには、まず pubspec.yaml ファイルにflutter_tts、このパッケージを追加する必要があります。
後、AndroidManifest.xmlファイルのqueries要素にTextToSpeech.Engine.INTENT_ACTION_TTS_SERVICEを追加する必要があります。
<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</queries>
<application
以下のパスを目的のファイルでインポートします。
import 'package:flutter_tts/flutter_tts.dart';
利用するには
FlutterTts ftts = FlutterTts();
再生するテキストを追加した後、テキストを音声に変換することができます。
var result = await ftts.speak("Hello there!");
言語、音声の大きさ、話すスピード、ツールのピッチなどを設定するには、以下の方法で出来ます。
await ftts.setLanguage("en-US");
await ftts.setSpeechRate(1.0);
await ftts.setVolume(0.5);
await ftts.setPitch(1);
以上だけです。
テストプログラムではボタンをタップした後、上記のプログラムを行うようにしています。
ElevatedButton(
onPressed:() async {
//
...
//
},
child: Text("Text to Speech"))
ということで、今回はこれで終わります。
金曜担当 – Ami
asahi at 2022年09月16日 10:00:00
- 2022年9月13日
- 技術情報
Symfony Process Component for working OS level processes in PHP
Today, I would like to share about a symfony component library to use OS level commands in PHP. This library will be useful in some cases that will need to work with OS level processes. Please check this library in the following link for more details.
https://symfony.com/doc/current/components/process.html
Hope you enjoy that library. This is all for now today.
By Asahi
waithaw at 2022年09月13日 10:00:00
5 PHP Application Monitoring Tools
Today, I would like to share about 5 PHP application monitoring tools. Let’s take a look.
Sentry.io
Sentry.io was originally for python frameworks. Sentry enables end-to-end observability and collects complete stack traces and offers support for PHP, Laravel and Symfony.
PHP Server Monitor
PHP server monitor is an open-source tool to monitor the performance of PHP servers and websites. It allows for easy cronjob monitoring, email, SMS and Pushover notifications, logs collection and more.
Logtail
Logtail is as structured log management platform based on ClickHouse. It can collect and monitor data in real-time from any PHP application.
New Relic
New Relic monitor and helps with identifying and troubleshooting performance issues. It tracks key transactions, monitors critical metrics, and visualizes everything in dashboards. New Relic’s PHP monitoring promises improved performance, query optimization, and instant observability.
Atatus
Atatus is a tool supporting PHP performance monitoring and error handling. Using the Atatus, we can improve business metrics and optimize the performance of the application. It discovers the longest transactions, the slowest database queries, the slowest network calls and exceptions.
This is all for now. Hope you enjoy that.
By Asahi
waithaw at 2022年09月06日 10:00:00
- 2022年9月05日
- 技術情報
Log Viewer for Laravel
Log Viewer supports multiple logs. You can view individual, daily, and period records. You can also use a package configuration file to customize the logs your application collects.
The Log Viewer app provides beautiful, formatted, collapsible, expandable, and searchable logs instead of analyzing plain text logs.
https://twitter.com/arukomp/status/1560914306815901697?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1560914306815901697%7Ctwgr%5Ebf7f4d7c6e854016490cea9415333ba721f53a0f%7Ctwcon%5Es1_c10&ref_url=https%3A%2F%2Flaravel-news.com%2Fbeautiful-log-viewer-for-laravel
- Here are the main features of this package:
- Link directly to logs
- Searchable and filterable by severity
- Download and remove logs via the UI
- Short stack traces to remove trace cruft from logs
- Configurable log viewer
- Built with Alpine.js, Tailwind, and Laravel
- Sort by oldest or newest logs
- Light and Dark mode
If you want to check more on this Log Viewer package, please read this.
Yuuma
yuuma at 2022年09月05日 10:00:00
- 2022年9月01日
- 技術情報
[Laravel] カスタムバリデーションの追加
nishida at 2022年09月01日 10:00:00